Timing in seconds

Posted by Gore on Tue 09 Jan 2007 03:31 PM — 3 posts, 17,833 views.

#0
In vbscript there's a variable that holds the number of seconds since midnight or some such, is there any similar thing in Lua?
#1
or how would I go about timing how long it takes before one function is called to when another is called?
Australia Forum Administrator #2
See os.clock :

http://www.gammon.com.au/scripts/doc.php?general=lua_os


Or, for more resolution, use GetInfo (232). That gives a more precise measurement than single seconds.