01: /**
02: * $Id: Timer.java,v 1.1 2004/02/03 22:08:40 jtb Exp $
03: * Copyright 2003 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.wsrp.common;
14:
15: public class Timer {
16: private long start = 0;
17:
18: public Timer() {
19: start = System.currentTimeMillis();
20: }
21:
22: public long getElapsed() {
23: return System.currentTimeMillis() - start;
24: }
25: }
|