This commit is contained in:
Gary Gregory 2023-10-20 15:15:07 -04:00
parent 30af124800
commit fc7320f981
1 changed files with 8 additions and 3 deletions

View File

@ -212,12 +212,18 @@ public class StopWatch {
private long startTimeNanos;
/**
* The start time in milliseconds - nanoTime is only for elapsed time so we need to also store the currentTimeMillis to maintain the old getStartTime API.
* The start time in milliseconds.
* <p>
* nanoTime is only for elapsed time so we need to also store the currentTimeMillis to maintain the old getStartTime API.
* </p>
*/
private long startTimeMillis;
/**
* The end time in milliseconds - nanoTime is only for elapsed time so we need to also store the currentTimeMillis to maintain the old getStartTime API.
* The end time in milliseconds.
* <p>
* nanoTime is only for elapsed time so we need to also store the currentTimeMillis to maintain the old getStartTime API.
* </p>
*/
private long stopTimeMillis;
@ -228,7 +234,6 @@ public class StopWatch {
/**
* Constructor.
*
*/
public StopWatch() {
this(null);