Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      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: 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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