[erlang-questions] Unexpected behaviour of timer:sleep

Bengt Kleberg bengt.kleberg@REDACTED
Wed Mar 19 10:48:27 CET 2008


Greetings,

The documentation for the timer module says:
"The timeouts are not exact, but should be at least as long as
requested."

So any value above 1000 is, arguably, correct.


bengt

On Wed, 2008-03-19 at 14:51 +0530, shehan wrote:
> Hi all,
> 
> When I am running following command, unexpected value came as result.
> Why is that??
> 
>  
> 
> (test@REDACTED)15> timer:tc(timer, sleep, [1]).  
> 
> {15000,ok}
> 
>  
> 
>  
> 
> I expected value is, between 1000 to 2000. 
> 
>  
> 
> BR,
> 
> Shehan
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions




More information about the erlang-questions mailing list