Browse Source

bringing Tim into the 21st century.

master
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 @@
*
* Tim tim = new Tim();
* do stuff
* tim.elapsed()
* tim.elapsedms()
*/
class Tim {
public class Tim {
double start, end;
public Tim() {
this.start = System.currentTimeMillis();
}
public double elapsed() {
public double elapsedms() {
this.end = System.currentTimeMillis();
return (end-start)/1000.0;
return (end-start);
}
}


Loading…
Cancel
Save