bamboo.util
Class GetTimeOfDayCC

java.lang.Object
  extended by bamboo.util.GetTimeOfDayCC

public class GetTimeOfDayCC
extends Object

Gets the cycle counter on Linux machines; to be used in situations where System.currentTimeMillis is no good because of NTP constantly resetting the clock, sometimes back in time (as on PlanetLab). Uses a C library written by Aki Nakao and available

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Constructor Summary
GetTimeOfDayCC()
           
 
Method Summary
static boolean available()
          Returns true if its safe to call GetTimeOfDayCC.currentTimeMillis.
static long currentTimeMillis()
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

GetTimeOfDayCC

public GetTimeOfDayCC()
Method Detail

available

public static boolean available()
Returns true if its safe to call GetTimeOfDayCC.currentTimeMillis.


currentTimeMillis

public static long currentTimeMillis()

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception