[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FEMM] Re: How to get computation time with lua script
I like to write the starting time to my log file when the
program begins:
start_time
= date()
write(handle,
"Start time: ", start_time, "\n" )
Then record the ending time at completion, and put up a message box for
the user:
end_time =
date()
write(handle,
"\nEnd time: ", end_time )
messagebox("All
done!\n\nStarted " .. start_time .. "\nFinished " ..
end_time)
You can see this in context at
http://www.oz.net/~coilgun/femm/femm_hollow_cylinder.htm
There is probably some simple math to get the elapsed time, but I prefer
the time-of-day clock instead.
Cheers, Barry
At 12:23 PM 10/14/2003, you wrote:
Hello All,
Could anyone tell me how to get the computation duration using lua
script?
Thanks in advance.
Tsarafidy