Tanoda
|
Clock that produces timestamps spaced at a fixed interval. This clock is useful for enforcing a fixed framerate in a recording. More...
Public Member Functions | |
FixedIntervalClock (int framerate, bool autoTick=true) | |
Create a fixed interval clock for a given framerate. More... | |
FixedIntervalClock (double interval, bool autoTick=true) | |
Create a fixed interval clock with a given timestamp interval. More... | |
void | Tick () |
Advance the clock by its time interval. More... | |
Properties | |
double | interval [get, set] |
Interval between consecutive timestamps generated by the clock in seconds. More... | |
long | timestamp [get] |
Current timestamp in nanoseconds. The very first value reported by this property will always be zero. More... | |
![]() | |
long | timestamp [get] |
Current timestamp in nanoseconds. More... | |
Clock that produces timestamps spaced at a fixed interval. This clock is useful for enforcing a fixed framerate in a recording.
Definition at line 14 of file FixedIntervalClock.cs.
NatSuite.Recorders.Clocks.FixedIntervalClock.FixedIntervalClock | ( | int | framerate, |
bool | autoTick = true |
||
) |
Create a fixed interval clock for a given framerate.
framerate | Desired framerate for clock's timestamps. |
autoTick | Optional. If true, the clock will tick when its Timestamp is accessed. |
Definition at line 36 of file FixedIntervalClock.cs.
NatSuite.Recorders.Clocks.FixedIntervalClock.FixedIntervalClock | ( | double | interval, |
bool | autoTick = true |
||
) |
Create a fixed interval clock with a given timestamp interval.
interval | Interval between consecutive timestamps in seconds. |
autoTick | Optional. If true, the clock will tick when its Timestamp is accessed. |
Definition at line 45 of file FixedIntervalClock.cs.
void NatSuite.Recorders.Clocks.FixedIntervalClock.Tick | ( | ) |
Advance the clock by its time interval.
Definition at line 56 of file FixedIntervalClock.cs.
|
getset |
Interval between consecutive timestamps generated by the clock in seconds.
Definition at line 19 of file FixedIntervalClock.cs.
|
get |
Current timestamp in nanoseconds. The very first value reported by this property will always be zero.
Implements NatSuite.Recorders.Clocks.IClock.
Definition at line 25 of file FixedIntervalClock.cs.