站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 varia API Documentation 英文版文档

Clock (Various API) - JBoss 4.0.1 sp1 varia API Documentation 英文版文档


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

java.lang.Object
  extended byorg.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: 1.2.6.1 $
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.