Re: [Yade-users] [Question #705760]: How to get the runtime or CPU time?

2023-03-09 Thread Danny (Dingeman) van der Haven
Question #705760 on Yade changed: https://answers.launchpad.net/yade/+question/705760 Status: Answered => Solved Danny (Dingeman) van der Haven confirmed that the question is solved: Thank you all! Those suggestions indeed sovled my problem. -- You received this question notification

Re: [Yade-users] [Question #705760]: How to get the runtime or CPU time?

2023-03-09 Thread Bruno Chareyre
Question #705760 on Yade changed: https://answers.launchpad.net/yade/+question/705760 Bruno Chareyre proposed the following answer: Python's time.time() is enough in many cases, as long as you don't need per-engine data or nano-second accuracy. t1 = time.time() O.run(...) realTime = time.time()

Re: [Yade-users] [Question #705760]: How to get the runtime or CPU time?

2023-03-09 Thread Jérôme Duriez
Question #705760 on Yade changed: https://answers.launchpad.net/yade/+question/705760 Jérôme Duriez proposed the following answer: Hi, There should be no problem in using timing module (have you "from yade import timing" first ?). Using time.time Python functions is still not a bad idea though

Re: [Yade-users] [Question #705760]: How to get the runtime or CPU time?

2023-03-08 Thread Karol Brzezinski
Question #705760 on Yade changed: https://answers.launchpad.net/yade/+question/705760 Status: Open => Answered Karol Brzezinski proposed the following answer: Hi Danny, It may be a little bit of a workaround, but every periodic engine (e.g. PyRunner) stores the information about the time

[Yade-users] [Question #705760]: How to get the runtime or CPU time?

2023-03-08 Thread Danny (Dingeman) van der Haven
New question #705760 on Yade: https://answers.launchpad.net/yade/+question/705760 Hi all! I would like to time the running time of the simulation at various stages. With this I mean the CPU time or the actual real-world time it take to run the simulation. I have tried the instructions at