Abacus  v0.1.0-alpha
Playtesting tools for Unity
Abacus.Stopwatch Class Reference

Measures generalized time duration. Use when you want to measure the of a particular event multiple times ex: duration of each combat sequence More...

Inheritance diagram for Abacus.Stopwatch:
Abacus.Internal.ITemporal

Public Member Functions

void Toggle ()
 Toggle the state of the stopwatch More...
 
string GetVariableName ()
 Retrieve the recorder's name/label More...
 
object Dump ()
 Convert the recorder data to an object for serialization More...
 

Public Attributes

string Label
 
List< TimeDurationMeasures => _measures
 
bool IsRecording => (_current != null)
 
string DisplayType => "stopwatch"
 

Additional Inherited Members

- Properties inherited from Abacus.Internal.ITemporal
string DisplayType [get]
 

Detailed Description

Measures generalized time duration. Use when you want to measure the of a particular event multiple times ex: duration of each combat sequence

Member Function Documentation

◆ Dump()

object Abacus.Stopwatch.Dump ( )

Convert the recorder data to an object for serialization

Returns
The recorder's data as an object

Implements Abacus.Internal.ITemporal.

◆ GetVariableName()

string Abacus.Stopwatch.GetVariableName ( )

Retrieve the recorder's name/label

Returns
The name of the recorder

Implements Abacus.Internal.ITemporal.

◆ Toggle()

void Abacus.Stopwatch.Toggle ( )

Toggle the state of the stopwatch


The documentation for this class was generated from the following file: