You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 1937 Reporter: administrator Status: closed (set by @damiendoligez on 2012-01-27T18:50:29Z) Resolution: fixed Priority: normal Severity: feature Fixed in version: 3.09.2 Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Daniel Bünzli
Version: 3.07+2
OS: MacOS X 10.3.1
Submission from: 45.45.203.62.dial.bluewin.ch (62.203.45.45)
The resolution of Unix.times() is too low. Subtracting figures returned by two
subsequent calls to the function one often gets 0.0 (even if some code was
executed meanwhile).
Unix.gettimeofday(), has a good resolution however it doesn't enable one to make
the difference between user and system time.
(Unix.gettimeofday()) -. (Unix.gettimeofday());;
: float = 2.02655792236328125e-06
A binding in the Unix module to the getrusage [1] function would give user and
system times with the accuracy of gettimeofday, that is possibly down to
microseconds (actual resolution is system dependent).
Original bug ID: 1937
Reporter: administrator
Status: closed (set by @damiendoligez on 2012-01-27T18:50:29Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 3.09.2
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Daniel Bünzli
Version: 3.07+2
OS: MacOS X 10.3.1
Submission from: 45.45.203.62.dial.bluewin.ch (62.203.45.45)
The resolution of Unix.times() is too low. Subtracting figures returned by two
subsequent calls to the function one often gets 0.0 (even if some code was
executed meanwhile).
(Unix.times()).Unix.tms_utime -. (Unix.times()).Unix.tms_utime;;
Unix.gettimeofday(), has a good resolution however it doesn't enable one to make
the difference between user and system time.
(Unix.gettimeofday()) -. (Unix.gettimeofday());;
A binding in the Unix module to the getrusage [1] function would give user and
system times with the accuracy of gettimeofday, that is possibly down to
microseconds (actual resolution is system dependent).
Thanks for considering,
Daniel
[1] http://www.opengroup.org/onlinepubs/007904975/functions/getrusage.html
http://www.opengroup.org/onlinepubs/007904975/basedefs/sys/resource.h.html
The text was updated successfully, but these errors were encountered: