Kieker 1.5

kieker.monitoring.timer
Class SystemMilliTimer

java.lang.Object
  extended by kieker.monitoring.timer.AbstractTimeSource
      extended by kieker.monitoring.timer.SystemMilliTimer
All Implemented Interfaces:
ITimeSource

public final class SystemMilliTimer
extends AbstractTimeSource

A timer implementation, counting in milliseconds since a specified offset.

Author:
Jan Waller

Field Summary
static String CONFIG_OFFSET
           
static String CONFIG_UNIT
           
 
Constructor Summary
SystemMilliTimer(Configuration configuration)
           
 
Method Summary
 long getTime()
          Returns the timestamp for the current time.
 String toString()
          Returns a String representation of the timesource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_OFFSET

public static final String CONFIG_OFFSET

CONFIG_UNIT

public static final String CONFIG_UNIT
Constructor Detail

SystemMilliTimer

public SystemMilliTimer(Configuration configuration)
Method Detail

getTime

public final long getTime()
Description copied from interface: ITimeSource
Returns the timestamp for the current time. Usually, the timestamp is assumed to be in TimeUnit.NANOSECONDS.


toString

public String toString()
Description copied from interface: ITimeSource
Returns a String representation of the timesource. E.g., the meaning of a timestamp from this source.

Specified by:
toString in interface ITimeSource
Specified by:
toString in class AbstractTimeSource

Kieker 1.5

Copyright 2012 the Kieker Project, http://kieker-monitoring.net