Language \ Environment \ Comparison
 
Index
 
  The Processing 1.0 _ALPHA_ Reference is a work in progress.
If you see any errors or have any comments, please write to: reas at groupc.net
Name  

millis()

   
Examples  
void loop() { 
  float m = millis(); 
  fill(m % 255); 
  rect(25, 25, 50, 50); 
} 
Description   Returns the number of milliseconds (thousandths of a second) since starting an applet. This information is often used for timing animation sequences.
   
Syntax  
millis()
   
Returns   int
   
Usage   Web & Application
   
Related   millis()
second()
minute()
hour()
day()
month()
year()
   
© 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea
Processing is an open project initiated by Ben Fry and Casey Reas