/[projects]/dao/DaoAdresseService/src/dk/daoas/daoadresseservice/util/TimingHelper.java
ViewVC logotype

Contents of /dao/DaoAdresseService/src/dk/daoas/daoadresseservice/util/TimingHelper.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2361 - (show annotations) (download)
Tue Feb 24 11:27:10 2015 UTC (9 years, 2 months ago) by torben
File size: 331 byte(s)
Add timer helper
1 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