bamboo.util
Class GetTimeOfDayCC
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static org.apache.log4j.Logger logger
GetTimeOfDayCC
public GetTimeOfDayCC()
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