com.timeindexing.time
Class Clock

java.lang.Object
  extended bycom.timeindexing.time.Clock

public class Clock
extends java.lang.Object

A simple wall clock class.


Field Summary
static Clock time
          A publically usable clock that tells the time.
 
Constructor Summary
Clock()
           
 
Method Summary
 Timestamp asMicros()
          Get the current time resolved to microseconds.
 Timestamp asMillis()
          Get the current time resolved to milliseconds.
 Timestamp asNanos()
          Get the current time resolved to nanoseconds.
 Timestamp asSeconds()
          Get the current time resolved to seconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

public static final Clock time
A publically usable clock that tells the time.

Constructor Detail

Clock

public Clock()
Method Detail

asSeconds

public Timestamp asSeconds()
Get the current time resolved to seconds.


asMillis

public Timestamp asMillis()
Get the current time resolved to milliseconds.


asMicros

public Timestamp asMicros()
Get the current time resolved to microseconds.


asNanos

public Timestamp asNanos()
Get the current time resolved to nanoseconds.