KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jzonic > jlo > TimeTrackerObject


1 package org.jzonic.jlo;
2
3 public class TimeTrackerObject {
4
5     private long started;
6     
7     public TimeTrackerObject() {
8         started = System.currentTimeMillis();
9     }
10     
11     public long getEllapsedTime() {
12         return System.currentTimeMillis() - started;
13     }
14 }
15
Popular Tags