KernelAPI reference
Struct SystemTiming
Namespace: MicroEngine.Core
Assembly: MicroEngine.dll
Guide: Game lifecycle and time
How long one system of the frame schedule took during the last frame (Systems).
public readonly struct SystemTiming : IEquatable<SystemTiming>Implements
Constructors
SystemTiming(string, FramePhase, double)
How long one system of the frame schedule took during the last frame (Systems).
public SystemTiming(string Name, FramePhase Phase, double Milliseconds)Parameters
Name string
The system’s name in FrameSchedule.
Phase FramePhase
Its phase.
Milliseconds double
Its time during the frame; a fixed phase adds up every step of the frame.
Properties
Milliseconds
Its time during the frame; a fixed phase adds up every step of the frame.
public double Milliseconds { get; init; }Property Value
Name
The system’s name in FrameSchedule.
public string Name { get; init; }Property Value
Phase
Its phase.
public FramePhase Phase { get; init; }Property Value
Methods
Deconstruct(out string, out FramePhase, out double)
public void Deconstruct(out string Name, out FramePhase Phase, out double Milliseconds)Parameters
Name string
Phase FramePhase
Milliseconds double
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(SystemTiming)
public bool Equals(SystemTiming other)Parameters
other SystemTiming
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(SystemTiming, SystemTiming)
public static bool operator ==(SystemTiming left, SystemTiming right)Parameters
left SystemTiming
right SystemTiming
Returns
operator !=(SystemTiming, SystemTiming)
public static bool operator !=(SystemTiming left, SystemTiming right)Parameters
left SystemTiming
right SystemTiming