Browse Source

bringing Tim into the 21st century.

Charles Reid 2 years ago
parent
commit
e5c80e3b8d
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      lists/linked-lists/Tim.java

+ 4
- 4
lists/linked-lists/Tim.java View File

@@ -6,16 +6,16 @@
6 6
  *
7 7
  * Tim tim = new Tim();
8 8
  * do stuff 
9
- * tim.elapsed()
9
+ * tim.elapsedms()
10 10
  */
11
-class Tim {
11
+public class Tim {
12 12
 	double start, end;
13 13
     public Tim() {
14 14
         this.start = System.currentTimeMillis();
15 15
     }
16
-    public double elapsed() {
16
+    public double elapsedms() {
17 17
         this.end = System.currentTimeMillis();
18
-        return (end-start)/1000.0;
18
+        return (end-start);
19 19
     }
20 20
 }
21 21