首页 > 文档 > millis()毫秒
2017
08-01

millis()毫秒

Name

millis()毫秒

   

Examples

void draw() {

int m = millis();

noStroke();

fill(m % 255);

rect(25, 25, 50, 50);

}

Description

Returns the number of milliseconds (thousandths of a second) since starting the program. This information is often used for timing events and animation sequences.

返回自启动程序以来的毫秒数 (千分之一秒)。此信息通常用于计时事件和动画序列。

Syntax

millis()

Returns

int

Related

second()
minute()
hour()
day()
month()
year()



最后编辑:
作者:卡萨布兰卡
这个作者貌似有点懒,什么都没有留下。

留下一个回复

你的email不会被公开。