Parent Directory | Revision Log | Patch
revision 2499 by torben, Fri Mar 20 13:57:47 2015 UTC | revision 2500 by torben, Wed Mar 25 07:34:09 2015 UTC | |
---|---|---|
# | Line 8 public class TimingHelper { | Line 8 public class TimingHelper { |
8 | start = System.currentTimeMillis(); | start = System.currentTimeMillis(); |
9 | } | } |
10 | ||
11 | public void printElapsed(String msg) { | public long getElapsed() { |
12 | long now = System.currentTimeMillis(); | long now = System.currentTimeMillis(); |
13 | ||
14 | System.out.println(">" + msg + ": " + (now-start) +"ms."); | return (now-start); |
15 | } | |
16 | ||
17 | public void printElapsed(String msg) { | |
18 | ||
19 | System.out.println(">" + msg + ": " + getElapsed() +"ms."); | |
20 | } | } |
21 | ||
22 | } | } |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |