|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.timer.ClockI
cgl.narada.service.timer.WindowsClock
public class WindowsClock
| Field Summary |
|---|
| Fields inherited from class cgl.narada.service.timer.ClockI |
|---|
currentTimeMicros, currentTimeMillis, globalServiceProperties, OSArch, OSName, servicePropertiesFactory |
| Method Summary | |
|---|---|
static ClockI |
getClock()
Returns clock implementation for Windows machines. |
long |
getLocalMicroseconds()
Makes a call to native side to get local clock time as microseconds |
long |
getLocalMilliseconds()
Makes a call to native side to get local clock time as milliseconds |
long |
getTimeMicroseconds()
Returns time in microseconds. |
long |
getTimeMilliseconds()
Returns time in milliseconds. |
static void |
main(String[] args)
Simple test program. |
void |
sleep(int sleepVal)
Makes a call to native side to causes thread to sleep for the specified amount in milliseconds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ClockI getClock()
public long getLocalMicroseconds()
public long getLocalMilliseconds()
public void sleep(int sleepVal)
sleep in class ClockIsleepVal - -
sleep time in millisecondspublic long getTimeMicroseconds()
getTimeMicroseconds in class ClockIpublic long getTimeMilliseconds()
getTimeMilliseconds in class ClockIpublic static void main(String[] args)
args - -
input arguments, no arguments used.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||