gov.nasa.gsfc.drl.rtstps.core.fs.clock
Class FrameClock1

java.lang.Object
  extended by gov.nasa.gsfc.drl.rtstps.core.fs.clock.FrameClock1
All Implemented Interfaces:
FrameClock

final class FrameClock1
extends java.lang.Object
implements FrameClock

A FrameClock. The user wants the session start to be different from the wall clock. FramClock1 uses the wall clock to space the frames.


Field Summary
private  long base
           
private  long nowStart
           
 
Constructor Summary
FrameClock1(java.util.Date epoch, java.util.Date sessionStart)
           
 
Method Summary
 long getTimeStamp()
          Get a timestamp.
 void start()
          Start the clock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nowStart

private long nowStart

base

private long base
Constructor Detail

FrameClock1

FrameClock1(java.util.Date epoch,
            java.util.Date sessionStart)
Method Detail

start

public void start()
Description copied from interface: FrameClock
Start the clock. This is really only important for clocks that use the current time.

Specified by:
start in interface FrameClock

getTimeStamp

public long getTimeStamp()
Description copied from interface: FrameClock
Get a timestamp. For some clocks you must call this method to advance the time.

Specified by:
getTimeStamp in interface FrameClock