aos.util.timer
Class RTClock
java.lang.Object
aos.util.timer.BaseClock
aos.util.timer.RTClock
- All Implemented Interfaces:
- java.lang.Runnable, Timer
- public class RTClock
- extends BaseClock
- implements java.lang.Runnable, Timer
This is the base implementation for the System real time Clock class.
Field Summary |
static Timer |
timer
This timer member is the JACK universal real-time clock. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
timer
public static Timer timer
- This timer member is the JACK universal real-time clock.
It is initialised from the operating system's real-time clock.
RTClock
public RTClock()
RTClock
public RTClock(java.lang.String s)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getTime
public long getTime()
- Method to return the clock's current time.
- Specified by:
getTime
in interface Timer
- Specified by:
getTime
in class BaseClock
- Returns:
- The current time in milliseconds.
setTime
public void setTime(long t)
- Specified by:
setTime
in interface Timer
adjustTime
public long adjustTime(long t)
- Specified by:
adjustTime
in interface Timer
reschedule
protected void reschedule()
- Specified by:
reschedule
in class BaseClock
Copyright (C) 1999-2008, Agent Oriented Software Pty. Ltd. US Government Restricted Rights
The JACK Modules and relevant Software Material have been developed entirely at private expense and are accordingly provided with RESTRICTED RIGHTS. Use, duplication, or disclosure by Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013 or subparagraph (c)(1) and (2) of the Commercial Computer Software Restricted Rights and 48 CFR 52.2270-19, as applicable.
Agent Oriented Software Pty. Ltd. http://www.aosgrp.com
PO Box 639, Carlton South, Victoria 3053, Australia
Phone: +61 3 9349 5055, Fax: +61 3 9349 5088