MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
MTimers::Timer Struct Reference
Collaboration diagram for MTimers::Timer:
[legend]

Public Types

enum  { Uninitialized = 0 , Running = 1 , Stopped = 2 }
 

Public Member Functions

 Timer (const MString n, const MInt g, const MInt id, const MInt p)
 

Public Attributes

MString name
 Timer Name. More...
 
MInt group = -1
 Group Id. More...
 
MInt timerId = -1
 
MInt parent = -1
 Parent timer id. More...
 
MFloat cpuTime = 0.0
 CPU time. More...
 
MFloat oldCpuTime = 0.0
 Old CPU time (for timer restart) More...
 
MFloat recordedTime = 0.0
 Time recorded on the timer. More...
 
MInt status = -1
 Timer's status, see enum: More...
 
std::vector< MIntsubTimers {}
 
MBool displayed = false
 

Detailed Description

Definition at line 218 of file timer.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Uninitialized 
Running 
Stopped 

Definition at line 237 of file timer.h.

237{ Uninitialized = 0, Running = 1, Stopped = 2 };
@ Uninitialized
Definition: timer.h:237

Constructor & Destructor Documentation

◆ Timer()

MTimers::Timer::Timer ( const MString  n,
const MInt  g,
const MInt  id,
const MInt  p 
)
inline

Definition at line 219 of file timer.h.

220 : name(n),
221 group(g),
222 timerId(id),
223 parent(p),
224 cpuTime(0),
225 oldCpuTime(0),
226 recordedTime(0),
228 subTimers(0) {}
MInt status
Timer's status, see enum:
Definition: timer.h:236
std::vector< MInt > subTimers
Definition: timer.h:238
MFloat recordedTime
Time recorded on the timer.
Definition: timer.h:235
MString name
Timer Name.
Definition: timer.h:229
MInt parent
Parent timer id.
Definition: timer.h:232
MInt group
Group Id.
Definition: timer.h:230
MFloat oldCpuTime
Old CPU time (for timer restart)
Definition: timer.h:234
MFloat cpuTime
CPU time.
Definition: timer.h:233
MInt timerId
Definition: timer.h:231

Member Data Documentation

◆ cpuTime

MFloat MTimers::Timer::cpuTime = 0.0

Definition at line 233 of file timer.h.

◆ displayed

MBool MTimers::Timer::displayed = false

Definition at line 239 of file timer.h.

◆ group

MInt MTimers::Timer::group = -1

Definition at line 230 of file timer.h.

◆ name

MString MTimers::Timer::name

Definition at line 229 of file timer.h.

◆ oldCpuTime

MFloat MTimers::Timer::oldCpuTime = 0.0

Definition at line 234 of file timer.h.

◆ parent

MInt MTimers::Timer::parent = -1

Definition at line 232 of file timer.h.

◆ recordedTime

MFloat MTimers::Timer::recordedTime = 0.0

Definition at line 235 of file timer.h.

◆ status

MInt MTimers::Timer::status = -1

Definition at line 236 of file timer.h.

◆ subTimers

std::vector<MInt> MTimers::Timer::subTimers {}

Definition at line 238 of file timer.h.

◆ timerId

MInt MTimers::Timer::timerId = -1

Definition at line 231 of file timer.h.


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