Ignore:
Timestamp:
2021-03-21T13:56:19+01:00 (3 years ago)
Author:
simon04
Message:

see #4626 - PerformanceTestUtils.PerformanceTestTimer: use Stopwatch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Stopwatch.java

    r16069 r17618  
    2323     */
    2424    public static Stopwatch createStarted() {
    25         return new Stopwatch(System.currentTimeMillis());
     25        return new Stopwatch(System.nanoTime());
    2626    }
    2727
     
    3232     */
    3333    public long elapsed() {
    34         return System.currentTimeMillis() - start;
     34        return (System.nanoTime() - start) / 1_000_000;
    3535    }
    3636
Note: See TracChangeset for help on using the changeset viewer.