Open Bug 752783 Opened 13 years ago Updated 2 years ago

Interval timer on Linux platforms has low resolution

Categories

(NSPR :: NSPR, enhancement)

All
Linux
enhancement

Tracking

(Not tracked)

People

(Reporter: julien.pierre, Unassigned)

Details

gettimeofday() used in _PR_UNIX_GetInterval in pr/src/md/unix/unix.c only has millisecond resolution. This is the implementation used on Linux. It could be replaced with one that uses clock_gettime() for better results.
Thank you for the suggestion. I checked the equivalent function in the Chromium source tree. It uses the clock_gettime(CLOCK_MONOTONIC, ...) function that you suggested on Linux and *BSD.

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.