org.jboss.jmx.adaptor.snmp.agent
Class Clock

java.lang.Object
  extended by org.jboss.jmx.adaptor.snmp.agent.Clock

public final class Clock
extends Object

Utility class that provides time keeping from the time of instantiation. Can be queried for time readings since the last incarnation in msecs.

Version:
$Revision: 44599 $
Author:
Spyros Pollatos, Dimitris Andreadis

Constructor Summary
Clock()
          CTOR - creates time counter with zeroed out clock
 
Method Summary
 long instantiationTime()
          Returns the difference, measured in milliseconds, between the instantiation time and midnight, January 1, 1970 UTC.
 long uptime()
          Returns the elapsed time in msecs from the time of instantiation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Clock

public Clock()
CTOR - creates time counter with zeroed out clock

Method Detail

instantiationTime

public long instantiationTime()
Returns the difference, measured in milliseconds, between the instantiation time and midnight, January 1, 1970 UTC.


uptime

public long uptime()
Returns the elapsed time in msecs from the time of instantiation.



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.