WebLogic Server 6.0 Code Examples, BEA Systems, Inc.

examples.jdbc.mssqlserver4
Class Timer

java.lang.Object
  |
  +--examples.jdbc.mssqlserver4.Timer

class Timer
extends java.lang.Object

Timer objects track elapsed time. This class is used by the LargeTableTests sample application.

Author:
Copyright (c) 1998-2000 by BEA Systems, Inc. All Rights Reserved.

Field Summary
(package private)  java.lang.String label
           
(package private)  long time
           
 
Constructor Summary
Timer(java.lang.String iLabel)
           
 
Method Summary
(package private)  long getTime()
          Return number of milliseconds since the time was created.
 java.lang.String toString()
          Return timer label and elapsed time.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

java.lang.String label

time

long time
Constructor Detail

Timer

public Timer(java.lang.String iLabel)
Method Detail

getTime

long getTime()
Return number of milliseconds since the time was created.

toString

public java.lang.String toString()
Return timer label and elapsed time.
Overrides:
toString in class java.lang.Object

Documentation is available at
http://e-docs.bea.com/wls/docs60

Copyright © 2000 BEA Systems, Inc. All Rights Reserved.