Friday, September 6, 2013

Get the time of the program has run

The following code get the number of milliseconds a program has run using millis(), then print to the text area of the Processing environment's console using println().

void setup() {
  size(300, 200);
}

void draw() { 
  int t = int(millis());
  println(t);
}

Print the time of the program has run
Print the time of the program has run, in millisecond.

No comments:

Post a Comment