Leviathan  0.8.0.0
Leviathan game engine
Leviathan::TimingMonitorClock Struct Reference

#include <TimingMonitor.h>

Public Member Functions

 TimingMonitorClock (const std::string &name, int style)
 
int EndMonitoring ()
 

Public Attributes

std::string Name
 
int64_t StartTime
 
int64_t EndTime
 
int CurrentElapsed
 
int Style
 

Detailed Description

Definition at line 25 of file TimingMonitor.h.

Constructor & Destructor Documentation

◆ TimingMonitorClock()

Leviathan::TimingMonitorClock::TimingMonitorClock ( const std::string &  name,
int  style 
)

Definition at line 86 of file TimingMonitor.cpp.

86  {
87  EndTime = -1;
88  Name = name;
89 
90  CurrentElapsed = 0;
92  Style = style;
93 }
static DLLEXPORT int64_t GetTimeMicro64()

Member Function Documentation

◆ EndMonitoring()

int Leviathan::TimingMonitorClock::EndMonitoring ( )

Definition at line 79 of file TimingMonitor.cpp.

79  {
80  // get end time and calculate duration //
83  return CurrentElapsed;
84 }
static DLLEXPORT int64_t GetTimeMicro64()

Member Data Documentation

◆ CurrentElapsed

int Leviathan::TimingMonitorClock::CurrentElapsed

Definition at line 33 of file TimingMonitor.h.

◆ EndTime

int64_t Leviathan::TimingMonitorClock::EndTime

Definition at line 32 of file TimingMonitor.h.

◆ Name

std::string Leviathan::TimingMonitorClock::Name

Definition at line 30 of file TimingMonitor.h.

◆ StartTime

int64_t Leviathan::TimingMonitorClock::StartTime

Definition at line 31 of file TimingMonitor.h.

◆ Style

int Leviathan::TimingMonitorClock::Style

Definition at line 34 of file TimingMonitor.h.


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