csharp
public readonly record struct UiFrameWhen a frame is happening, and how long the last one took.
Remarks
⚠ Both, because a caller needs each for a different thing and deriving one from the other is where the copies went wrong. An animation phase accumulates Delta; a toast expires against Now, which is the same clock Tick is given, so a caller that stamped one from Stopwatch.GetTimestamp of its own would have two timelines that agree until the process is paused under a debugger.
Fields and properties (2)
public TimeSpan NowTime since the application started.
public TimeSpan DeltaHow long the previous frame took.
Methods (1)
public UiFrame(TimeSpan Now, TimeSpan Delta)When a frame is happening, and how long the last one took.
Used by (2)
- UiApplicationVixen.Ui.Desktop
- UiApplicationOptionsVixen.Ui.Desktop