com.cc.framework.common
Class Stopwatch

java.lang.Object
  extended bycom.cc.framework.common.Stopwatch

public class Stopwatch
extends java.lang.Object

StopWatch for time measurement

Since:
1.0
Version:
$Revision: 1.12 $
Author:
Harald Schulz

Field Summary
private  long t1
          start time
private  long t2
          stop time
 
Constructor Summary
Stopwatch()
          Constructor
 
Method Summary
 long getMillis()
           
 void start()
          Starts the stop watch
 void stop()
          Stops the stop watch
 java.lang.String toString()
          Returns the seconds between the start() and the stop()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

t1

private long t1
start time


t2

private long t2
stop time

Constructor Detail

Stopwatch

public Stopwatch()
Constructor

Method Detail

start

public void start()
Starts the stop watch


stop

public void stop()
Stops the stop watch


getMillis

public long getMillis()
Returns:
returns the elapsed time in milliseconds

toString

public java.lang.String toString()
Returns the seconds between the start() and the stop()

Returns:
String


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.