pxt-calliope/docs/reference/input/running-time-micros.md

348 B

Running Time Micros

Find how long it has been since the program started in micro-seconds.

input.runningTimeMicros();

Returns

  • the Number of microseconds since the program started. (One second is 1000000 microseconds.)

See also

show number, pause