We're updating the issue view to help you get more done. 

Use clock_gettime to implement sysNanoTime

Description

Revision 13187 switched us to using nanoTime instead of a cycle counter as the basis for all VM internal timing.

The current implementation of sysNanoTime in sys.C is the naive one that simply uses getttimeofday. On modern Linux versions, we can do better by using clock_gettime. There are also better mechanisms available on AIX. We should re-implement sysNanoTime to exploit the best available monotonic clock provided by the host OS.

Environment

None

Status

Assignee

DaveG

Reporter

DaveG

Labels

None

External issue ID

None

Components

Fix versions

Affects versions

2.9.2

Priority

Medium