diff options
author | pacien | 2018-02-01 21:55:13 +0100 |
---|---|---|
committer | pacien | 2018-02-01 21:55:13 +0100 |
commit | dc8e3e8fbd8bfb9d0b3aeb8d76765afd4310d7e1 (patch) | |
tree | 841d3531476ff0fa1bc16824ad927b751101e722 | |
parent | 6dd0e213ba1f82941c7cc5f41f72aea29fb257a7 (diff) | |
download | wallj-dc8e3e8fbd8bfb9d0b3aeb8d76765afd4310d7e1.tar.gz |
Add doc
Signed-off-by: pacien <pacien.trangirard@pacien.net>
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/viewer/StopWatch.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/viewer/StopWatch.java b/src/main/java/fr/umlv/java/wallj/viewer/StopWatch.java index 55f0440..3c6b08e 100644 --- a/src/main/java/fr/umlv/java/wallj/viewer/StopWatch.java +++ b/src/main/java/fr/umlv/java/wallj/viewer/StopWatch.java | |||
@@ -10,6 +10,9 @@ import java.time.Duration; | |||
10 | public class StopWatch { | 10 | public class StopWatch { |
11 | private long startTime = System.currentTimeMillis(); | 11 | private long startTime = System.currentTimeMillis(); |
12 | 12 | ||
13 | /** | ||
14 | * @return the duration since the creation of the stopwatch | ||
15 | */ | ||
13 | public Duration peek() { | 16 | public Duration peek() { |
14 | return Duration.ofMillis(System.currentTimeMillis() - startTime); | 17 | return Duration.ofMillis(System.currentTimeMillis() - startTime); |
15 | } | 18 | } |