Changeset 17618 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-03-21T13:56:19+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Stopwatch.java
r16069 r17618 23 23 */ 24 24 public static Stopwatch createStarted() { 25 return new Stopwatch(System. currentTimeMillis());25 return new Stopwatch(System.nanoTime()); 26 26 } 27 27 … … 32 32 */ 33 33 public long elapsed() { 34 return System. currentTimeMillis() - start;34 return (System.nanoTime() - start) / 1_000_000; 35 35 } 36 36
Note:
See TracChangeset
for help on using the changeset viewer.