summaryrefslogtreecommitdiff
path: root/java/ImageProcessing/filters/Timer.java
blob: 609ec8aa366df07a8b29abe5b36554f51f6d9a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package imaging.filters;

public class Timer
{
  long start_time_;
  long stop_time_;
  
  public void start()
  {
    start_time_ = System.currentTimeMillis();
  }

  public void stop()
  {
    stop_time_ = System.currentTimeMillis();
  }

  public String toString()
  {
    long total = stop_time_ - start_time_;
    return "Total Time:" + total + " ms";
  }
}