[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thanks [FEMM] Re: How to get computation time with lua script



This is exactly what I was looking for.
Thanks a lot for this help !
Best regards
 
Tsarafidy

Barry Hansen <coilgun@xxxxxx> wrote:
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
_______________________________________________
FEMM mailing list
FEMM@xxxxxxxxxxxxxxxxxxxxxx
http://femm.foster-miller.net/mailman/listinfo/femm



Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Testez le nouveau Yahoo! Mail