Skip to content

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).

C#
public readonly struct SystemTiming : IEquatable<SystemTiming>

Implements

IEquatable<SystemTiming>

Constructors

SystemTiming(string, FramePhase, double)

How long one system of the frame schedule took during the last frame (Systems).

C#
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.

C#
public double Milliseconds { get; init; }

Property Value

double

Name

The system’s name in FrameSchedule.

C#
public string Name { get; init; }

Property Value

string

Phase

Its phase.

C#
public FramePhase Phase { get; init; }

Property Value

FramePhase

Methods

Deconstruct(out string, out FramePhase, out double)

C#
public void Deconstruct(out string Name, out FramePhase Phase, out double Milliseconds)

Parameters

Name string

Phase FramePhase

Milliseconds double

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(SystemTiming)

C#
public bool Equals(SystemTiming other)

Parameters

other SystemTiming

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(SystemTiming, SystemTiming)

C#
public static bool operator ==(SystemTiming left, SystemTiming right)

Parameters

left SystemTiming

right SystemTiming

Returns

bool

operator !=(SystemTiming, SystemTiming)

C#
public static bool operator !=(SystemTiming left, SystemTiming right)

Parameters

left SystemTiming

right SystemTiming

Returns

bool