Struct StepResult
What a Step(int) ran.
public readonly struct StepResult : IEquatable<StepResult>
- Implements
- Inherited Members
Constructors
StepResult(long, long, int, bool)
What a Step(int) ran.
public StepResult(long FirstTick, long LastTick, int Executed, bool Preempted)
Parameters
FirstTicklongThe first tick that started after the call, or
LastTick + 1when none did.LastTicklongThe last tick that ran before the boundary that completed the step.
ExecutedintHow many ticks ran between the call and that boundary:
LastTick - FirstTick + 1. More than asked when a laterStepadded its ticks to this one's (budgets add).PreemptedboolA Pause(TimeSpan) or a Resume() ended the step before its ticks ran out.
Properties
Executed
How many ticks ran between the call and that boundary: LastTick - FirstTick + 1. More than asked when a later
Step added its ticks to this one's (budgets add).
public int Executed { get; init; }
Property Value
FirstTick
The first tick that started after the call, or LastTick + 1 when none did.
public long FirstTick { get; init; }
Property Value
LastTick
The last tick that ran before the boundary that completed the step.
public long LastTick { get; init; }
Property Value
Preempted
A Pause(TimeSpan) or a Resume() ended the step before its ticks ran out.
public bool Preempted { get; init; }
Property Value
Methods
Deconstruct(out long, out long, out int, out bool)
public void Deconstruct(out long FirstTick, out long LastTick, out int Executed, out bool Preempted)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(StepResult)
public bool Equals(StepResult other)
Parameters
otherStepResult
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(StepResult, StepResult)
public static bool operator ==(StepResult left, StepResult right)
Parameters
leftStepResultrightStepResult
Returns
operator !=(StepResult, StepResult)
public static bool operator !=(StepResult left, StepResult right)
Parameters
leftStepResultrightStepResult