HyperView2.959 bannerDocumentation
 
public class SystemClock
The SystemClock.class is a Threaded 1 second asynchronous heartbeat timer.
To implement it first get the clock via the cheesy easy static
SystemClock.getSystemClock() method.
ie:
SystemClock myClock = SystemClock.getSystemClock()

Note:  The SystemClock.class is a singleton within the confines of an individual Process.
  It is NOT designed for sub second timing though with a little tweaking you could force the issue.
  It is designed to be "Low Impact" in the CPU cycle dept.
 
  Getting the clock will at once also start it and return its reference or if already started will simply
  return the  reference. To use the SystemClock you need a "SystemTimer.class


   Methods:

   static SystemClock getSystemClock()
   call this method to get & start the SystemClock.  It is a singleton so the next call will
   return   the reference.


   void setWaitTime(int tMillis)
  
Set the wait time (default 1000 MS).  Normally this is a "1 second heartbeat" timer,
   but you can set it for sub second timing via this call.


  static String getClockString()
  Returns the clock in the form


  SystemTimer getTimer(int tSeconds)
  Return a timer with timeout in seconds



  SystemTimer getTimer(int tSeconds,boolean tRepeat)
 
Return a timer with timeout in seconds and if to repeat.
  ie: if true then the timer function will execute and the re queue itself.


  SystemTimer getTimer()
  Return a default SystemTimer.class


  public void add(SystemTimer)   
  Add a SystemTimer to this SystemClock


  public void add(SystemTimer[],boolean)
 
Add an array of SystemTimers and set the repeat bit to true or false.
  This allows you to add a block of timers and only have to synchronize once.


  public void remove(SystemTimer)
  Remove a SystemTimer from this SystemClock

  public synchronized void remove(SystemTimer tTimer[])
  Remove an array of SystemTimers.

  public boolean isRunning()
  Returns true if the SystemClock is running

   public void join() throws InterruptedException
  
Wait for the SystemClock to stop()