Notice that the value returned by os.clock() is:
".. approximation of the amount in seconds of CPU time used by the
program."
It is not the "wall clock" time. If you need that in ms, you need to
use LuaSocket, Lanes or some other C side binding to gettimeofday (2)
on Posix and similar Win32 API.
-asko
spir kirjoitti 13.11.2009 kello 14:37:
Hello again,
Is there a builtin or a lib tool? If not, how do you do it?
(googling brought no sensible info on the topic)
Thank you,
Denis
--------------------------------
* la vita e estrany *
site: http://spir.wikidot.com/