Parent Directory | Revision Log
Add timer helper
1 | torben | 2361 | package dk.daoas.daoadresseservice.util; |
2 | |||
3 | public class TimingHelper { | ||
4 | |||
5 | private long start; | ||
6 | |||
7 | public TimingHelper() { | ||
8 | start = System.currentTimeMillis(); | ||
9 | } | ||
10 | |||
11 | public void printElapsed(String msg) { | ||
12 | long now = System.currentTimeMillis(); | ||
13 | |||
14 | System.out.println(">" + msg + ": " + (now-start) +"ms."); | ||
15 | } | ||
16 | |||
17 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |