/[projects]/dao/NaermestePakkeshop/src/dk/daoas/naermestepshop/TimingHelper.java
ViewVC logotype

Contents of /dao/NaermestePakkeshop/src/dk/daoas/naermestepshop/TimingHelper.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2582 - (show annotations) (download)
Sun Jun 14 07:53:37 2015 UTC (8 years, 11 months ago) by torben
File size: 386 byte(s)
Initial import.
1 package dk.daoas.naermestepshop;
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