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

Measures splits (discrete, sequential durations). Use when you want to measure the time each event in a sequence takes to complete More...

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

Public Member Functions

void ToggleSplit (string name)
 Toggle the current split's state More...
 
void StartSplit (string name)
 Start a new split More...
 
void StopSplit ()
 Stop the active split More...
 
string GetVariableName ()
 Retrieve the splitwatch's name/label More...
 
object Dump ()
 Convert the recorder data to an object for serialization More...
 

Public Attributes

string Label
 
List< SplitSplits => _splits
 
bool IsRecording => (_current != null)
 
string DisplayType => "splitwatch"
 

Additional Inherited Members

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

Detailed Description

Measures splits (discrete, sequential durations). Use when you want to measure the time each event in a sequence takes to complete

Member Function Documentation

◆ Dump()

object Abacus.Splitwatch.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.Splitwatch.GetVariableName ( )

Retrieve the splitwatch's name/label

Returns
The name of the recorder

Implements Abacus.Internal.ITemporal.

◆ StartSplit()

void Abacus.Splitwatch.StartSplit ( string  name)

Start a new split

Parameters
nameThe name of the split

◆ StopSplit()

void Abacus.Splitwatch.StopSplit ( )

Stop the active split

◆ ToggleSplit()

void Abacus.Splitwatch.ToggleSplit ( string  name)

Toggle the current split's state

Parameters
nameThe name of the split

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