|
|||||||||
| 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.HRClock
public class HRClock
HRClock wrapps Windows and Unix implementations and returns the client either windows or unix implementation of the clock.
| Field Summary |
|---|
| Fields inherited from class cgl.narada.service.timer.ClockI |
|---|
currentTimeMicros, currentTimeMillis, globalServiceProperties, servicePropertiesFactory |
| Method Summary | |
|---|---|
static ClockI |
getClock()
Returns clock implementation for the underlying operating system. |
static ClockI |
getClock(String nbHome)
Returns clock implementation for the underlying operating system. |
static String |
getNBHome()
|
long |
getTimeMicroseconds()
Returns time in microseconds |
long |
getTimeMilliseconds()
Returns time in milliseconds |
static void |
main(String[] args)
Simple test program. |
void |
sleep(int sleepVal)
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 static ClockI getClock(String nbHome)
nbHome - -
NB Home directory
public static String getNBHome()
public long getTimeMicroseconds()
getTimeMicroseconds in class ClockIpublic long getTimeMilliseconds()
getTimeMilliseconds in class ClockIpublic void sleep(int sleepVal)
sleep in class ClockIsleepVal - -
sleep time in millisecondspublic 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 | ||||||||