Topics Microclock

number os.microclock ( )

Operates the same way as os.clock(), but returns a high-resolution time value with practical accuracy to ~0.25 microseconds. The os.clock() function, on the other hand, has accuracy to 10 or 15 milliseconds. Be aware that this function is slower than os.clock() and shouldn't be used in a tight loop.

Parameters

None.

Return Values

number A floating time value

Copyright 2010 Justin Aquadro