[erlang-questions] erlang:now() vs os:timestamp()

Manuel A. Rubio "Bombadil" bombadil@REDACTED
Wed Apr 3 19:05:18 CEST 2013


Hi Fred,

yes, you're right. I did the test again[1] and get these results:

os:timestamp =  9.00  9.19  9.42
erlang:now   = 25.01 25.00 25.00

Having 1,000 processes doing 25,000 executions, looks like that 
os:timestamp is better for concurrency that erlang:now.

Thanks for the point :-)

[1] https://gist.github.com/manuel-rubio/5303075

Regards.
Manuel Rubio.



More information about the erlang-questions mailing list