Erlang/OTP Forums

Author Message

<  Erlang  ~  statistics(runtime) call in Windows

jeffrey.flint
Posted: Mon Dec 31, 2007 1:11 am Reply with quote
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
View user's profile Send private message
Mazen
Posted: Fri Jan 04, 2008 11:16 am Reply with quote
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
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

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