diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2013-12-11 14:05:42 +0100 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2013-12-13 23:01:35 +0100 |
commit | a3a5e4a6f548bf8b9d2874a5d6578c8364a1984f (patch) | |
tree | 1a5d3a35c351448ca3e026b18d264732677afac8 /src/repl | |
parent | b345b42cac64aa97e3bbcc6f14ef8f08214ab56f (diff) | |
download | scala-a3a5e4a6f548bf8b9d2874a5d6578c8364a1984f.tar.gz scala-a3a5e4a6f548bf8b9d2874a5d6578c8364a1984f.tar.bz2 scala-a3a5e4a6f548bf8b9d2874a5d6578c8364a1984f.zip |
SI-7546 Use likely monotonic clock source for durations
System.currentTimeMillis is affected by wall-clock time, which means
things can appear to jump back in time.
Use System.nanoTime which is more likely¹ to be monotonic instead.
¹ See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6458294
"nanoTime affected by system clock change on Linux (RH9) or in
general lacks monotonicity".
Diffstat (limited to 'src/repl')
0 files changed, 0 insertions, 0 deletions