/[projects]/dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/util/TimingHelper.java |
Parent Directory | Revision Log
Add first working edition
1 | torben | 2838 | package dk.daoas.adressevedligehold.util; |
2 | |||
3 | public class TimingHelper { | ||
4 | |||
5 | private long start; | ||
6 | |||
7 | public TimingHelper() { | ||
8 | start = System.currentTimeMillis(); | ||
9 | } | ||
10 | |||
11 | public long getElapsed() { | ||
12 | long now = System.currentTimeMillis(); | ||
13 | |||
14 | 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 |