01: /**
02: *
03: */package com.dappit.Dapper.parser.profiler;
04:
05: /**
06: * @author Ohad Serfaty
07: *
08: */
09: public class SimpleTimeProfiler extends SimpleProfiler {
10: long startStamp;
11:
12: /**
13: *
14: */
15: public double report(String prefix) {
16: long endStamp = System.currentTimeMillis();
17: double resultSeconds = (double) ((double) (endStamp - startStamp) / 1000.0);
18: System.err.println(prefix + " : " + resultSeconds + " sec.");
19: return resultSeconds;
20: }
21:
22: /**
23: *
24: */
25: public void start() {
26: startStamp = System.currentTimeMillis();
27: }
28:
29: }
|