Neuro-VISOR  0.2.0
Visualize and interact with computational simulations using a virtual reality interface
C2M2.Utils.Timer Class Reference

Classes

struct  TimerNode
 

Public Member Functions

 Timer ()
 
 Timer (int size)
 
void StartTimer ()
 Create a new timer node and mark its creation time More...
 
double StopTimer (string name)
 Stop the current time node and calculate the time since the node was created More...
 
double StopTimer ()
 
void ExportCSV_path (string filePath)
 
void ExportCSV (string newFileName, bool buildSimpleStats=false)
 
override string ToString ()
 
string ToStringPlus ()
 

Properties

List< TimerNodetimerNodes [get, private set]
 

Private Attributes

DateTime t0
 
DateTime t1
 
Stopwatch stopwatch
 

Constructor & Destructor Documentation

◆ Timer() [1/2]

C2M2.Utils.Timer.Timer ( )

◆ Timer() [2/2]

C2M2.Utils.Timer.Timer ( int  size)

Member Function Documentation

◆ ExportCSV()

void C2M2.Utils.Timer.ExportCSV ( string  newFileName,
bool  buildSimpleStats = false 
)

◆ ExportCSV_path()

void C2M2.Utils.Timer.ExportCSV_path ( string  filePath)

◆ StartTimer()

void C2M2.Utils.Timer.StartTimer ( )

Create a new timer node and mark its creation time

◆ StopTimer() [1/2]

double C2M2.Utils.Timer.StopTimer ( )

◆ StopTimer() [2/2]

double C2M2.Utils.Timer.StopTimer ( string  name)

Stop the current time node and calculate the time since the node was created

Returns
Time in milliseconds since the time node was created.

◆ ToString()

override string C2M2.Utils.Timer.ToString ( )

◆ ToStringPlus()

string C2M2.Utils.Timer.ToStringPlus ( )

Member Data Documentation

◆ stopwatch

Stopwatch C2M2.Utils.Timer.stopwatch
private

◆ t0

DateTime C2M2.Utils.Timer.t0
private

◆ t1

DateTime C2M2.Utils.Timer.t1
private

Property Documentation

◆ timerNodes

List<TimerNode> C2M2.Utils.Timer.timerNodes
getprivate set

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