Interested in improving this site? Please check the To Do page.
clock.milliseconds
Determines the number of milliseconds (thousandths of a second) since the computer was started.
Syntax
clock.milliseconds()
Params
none
Returns
A number indicating how many milliseconds have passed since the computer was started.
Examples
clock.milliseconds()
9140884
clock.milliseconds() / 1000 // for seconds
9167
Notes
This verb is useful in performance benchmarking tests and for generating random numbers.
Modern processors are much too fast for “clock.ticks” to be as useful as it once was: too many operations (or entire scripts) can be executed in less than one tick.
Script profiling results are reported in milliseconds (used to be ticks).