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

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

- To: Finite Element Method Magnetics mailing list <femm@list.foster-miller.net>
- Subject: Thanks --- Re: [FEMM] How to get computation time with lua script
- From: Tsarafidy RAMINOSOA <tsarafidy@yahoo.fr>
- Date: Wed, 15 Oct 2003 11:07:30 +0200 (CEST)
- In-reply-to: <3F8C57EF.1090505@ieee.org>
- 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 think this way is simpler.
Thanks a lot for this help.
Best regards
Tsarafidy
David Meeker <dmeeker@ieee.org> wrote:

> Tsarafidy RAMINOSOA wrote:
> > Hello All,
> >
> > Could anyone tell me how to get the computation duration using lua script?
> >
> > Thanks in advance.
> >
> > Tsarafidy
> The clock() command returns an approximation of the amount of CPU time
> used by the program, in seconds. You could call clock at the beginning
> of the a script to get the starting time, call it again at the end to
> get the finish time, and take the difference to see how long it all
> took. An example that would measure how long an analysis takes to run
> in femm 3.3 would be:
> t1=clock()
> analyze()
> t2=clock()
> print(t2-t1)
> Dave.
> --
> David Meeker
> email: dmeeker@ieee.org
> www: http://femm.berlios.de/dmeeker
> _______________________________________________
> FEMM mailing list
> FEMM@list.foster-miller.net
> 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

- References:
  - Re: [FEMM] How to get computation time with lua script
    - From: David Meeker <dmeeker@ieee.org>

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