We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f00d76e commit 7dbefcdCopy full SHA for 7dbefcd
1 file changed
src/main/java/time/TimeRecord.java
@@ -0,0 +1,28 @@
1
+package time;
2
+
3
+public class TimeRecord {
4
5
+ private long start, end;
6
7
+ public void start() {
8
+ start = System.currentTimeMillis();
9
+ }
10
11
+ public int stop() {
12
+ end = System.currentTimeMillis();
13
+ return (int) (end - start);
14
15
16
+ public int getTime() {
17
18
19
20
+ public int getStart() {
21
+ return (int) start;
22
23
24
+ public int getEnd() {
25
+ return (int) end;
26
27
28
+}
0 commit comments