|
|
| Author |
Message |
< Erlang ~ statistics(runtime) call in Windows |
| jeffrey.flint |
Posted: Mon Dec 31, 2007 1:11 am |
|
|
|
Joined: 23 Dec 2007
Posts: 2
|
I am working through some examples in the "Programming Erlang" book.
In one of the exercises it requires me to time the length of execution of some code. An example in the book uses "statistics(runtime)", however it seems to me that this call is not functioning correctly. I suspect it is because I am on a Windows machine.
Furthermore, I cannot find where this call is documented, so I could use help here as well.
Jeff |
|
|
| Back to top |
|
| Mazen |
Posted: Fri Jan 04, 2008 11:16 am |
|
|
|
User
Joined: 20 Jul 2006
Posts: 164
Location: London
|
Hi. I don't know what statistics can do for you but I usually use the timer module.
http://erlang.org/doc/man/timer.html
timer:tc(M,F,A) -> {Time, Value}
could be handy...
R
/Mazen |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|