Table of Contents

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

TimeSpan

RealTimeFactor

Neural seconds per wall second since the last reset (∞ if no wall time yet).

public double RealTimeFactor { get; }

Property Value

double

RecentRealTimeFactor

Real-time factor over the most recent Sample() window.

public double RecentRealTimeFactor { get; }

Property Value

double

RecentSpikesPerSecond

Spikes per neural second over the most recent Sample() window.

public double RecentSpikesPerSecond { get; }

Property Value

double

Spikes

Total spikes since the last reset.

public long Spikes { get; }

Property Value

long

Steps

Steps completed since the last reset.

public long Steps { get; }

Property Value

long

StepsPerSecond

Steps per wall second since the last reset.

public double StepsPerSecond { get; }

Property Value

double

WallTime

Wall-clock time spent advancing since the last reset.

public TimeSpan WallTime { get; }

Property Value

TimeSpan

Methods

Sample()

Closes the current statistics window: RecentSpikesPerSecond and RecentRealTimeFactor describe everything since the previous call.

public void Sample()