s&box docs
API ReferenceSandbox.Diagnostics

public sealed struct Sandbox.Diagnostics.FastTimer

A lightweight, high-resolution timer for performance measurement. More efficient than `System.Diagnostics.Stopwatch` with a simpler API.

Methods

Showing 2 methods

public void Start()

Starts or restarts the timer.

public static Sandbox.Diagnostics.FastTimer StartNew()

Creates and starts a new FastTimer.

Returns

A started FastTimer

Properties

Showing 6 properties

public System.TimeSpan Sandbox.Diagnostics.FastTimer.Elapsed { get; set; }

Gets the time elapsed since the timer was started as a TimeSpan.

public double Sandbox.Diagnostics.FastTimer.ElapsedMicroSeconds { get; set; }

Gets the number of microseconds elapsed since the timer was started.

public double Sandbox.Diagnostics.FastTimer.ElapsedMilliSeconds { get; set; }

Gets the number of milliseconds elapsed since the timer was started.

public double Sandbox.Diagnostics.FastTimer.ElapsedSeconds { get; set; }

Gets the number of seconds elapsed since the timer was started.

public long Sandbox.Diagnostics.FastTimer.ElapsedTicks { get; set; }

Gets the number of ticks elapsed since the timer was started.

public long Sandbox.Diagnostics.FastTimer.StartTick { get; set; }

Gets the timestamp when the timer was started.

Metadata

FieldValue
NamespaceSandbox.Diagnostics
Typeclass
AssemblySandbox.System
Doc IDT:Sandbox.Diagnostics.FastTimer

On this page