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

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

- To: Finite Element Method Magnetics mailing list <femm@list.foster-miller.net>
- Subject: [FEMM] Re: How to get computation time with lua script
- From: Barry Hansen <coilgun@oz.net>
- Date: Tue, 14 Oct 2003 13:47:19 -0700
- In-reply-to: <20031014192314.23815.qmail@web41105.mail.yahoo.com>
- List-archive: <http://femm.foster-miller.net/pipermail/femm>
- List-help: <mailto:femm-request@list.foster-miller.net?subject=help>
- List-id: Finite Element Method Magnetics mailing list <femm.list.foster-miller.net>
- List-post: <mailto:femm@list.foster-miller.net>
- List-subscribe: <http://femm.foster-miller.net/mailman/listinfo/femm>, <mailto:femm-request@list.foster-miller.net?subject=subscribe>
- List-unsubscribe: <http://femm.foster-miller.net/mailman/listinfo/femm>, <mailto:femm-request@list.foster-miller.net?subject=unsubscribe>
- Reply-to: Finite Element Method Magnetics mailing list <femm@list.foster-miller.net>

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

- Follow-Ups:
  - Re: Thanks [FEMM] Re: How to get computation time with lua script
    - From: Tsarafidy RAMINOSOA <tsarafidy@yahoo.fr>

- References:
  - [FEMM] How to get computation time with lua script
    - From: Tsarafidy RAMINOSOA <tsarafidy@yahoo.fr>

- Prev by Date: Re: [FEMM] How to get computation time with lua script
- Next by Date: Re: Thanks [FEMM] Re: How to get computation time with lua script
- Previous by thread: Re: [FEMM] How to get computation time with lua script
- Next by thread: Re: Thanks [FEMM] Re: How to get computation time with lua script
- Index(es):
  - Date
  - Thread