Class SimulationClock
- Namespace
- DotFly
- Assembly
- DotFly.Engine.dll
Keeps neural time, simulated duration and wall time apart. Wall time accumulates only while the simulation is advancing, so the real-time factor measures the engine, not the caller's pauses.
public sealed class SimulationClock
- Inheritance
-
SimulationClock
- Inherited Members
Properties
NeuralTime
Neural time elapsed since the last reset (steps × dt).
public TimeSpan NeuralTime { get; }
Property Value
RealTimeFactor
Neural seconds per wall second since the last reset (∞ if no wall time yet).
public double RealTimeFactor { get; }
Property Value
RecentRealTimeFactor
Real-time factor over the most recent Sample() window.
public double RecentRealTimeFactor { get; }
Property Value
RecentSpikesPerSecond
Spikes per neural second over the most recent Sample() window.
public double RecentSpikesPerSecond { get; }
Property Value
Spikes
Total spikes since the last reset.
public long Spikes { get; }
Property Value
Steps
Steps completed since the last reset.
public long Steps { get; }
Property Value
StepsPerSecond
Steps per wall second since the last reset.
public double StepsPerSecond { get; }
Property Value
WallTime
Wall-clock time spent advancing since the last reset.
public TimeSpan WallTime { get; }
Property Value
Methods
Sample()
Closes the current statistics window: RecentSpikesPerSecond and RecentRealTimeFactor describe everything since the previous call.
public void Sample()