Plasma Engine
2.0
Loading...
Searching...
No Matches
Stopwatch.h
1
#pragma once
2
3
#include <Foundation/Basics.h>
4
#include <Foundation/Time/Time.h>
5
7
class
PL_FOUNDATION_DLL
plStopwatch
8
{
9
public
:
11
plStopwatch
();
// [tested]
12
14
void
StopAndReset();
15
20
void
Pause();
// [tested]
21
26
void
Resume();
// [tested]
27
32
plTime
GetRunningTotal()
const
;
// [tested]
33
41
plTime
Checkpoint();
// [tested]
42
43
private
:
44
bool
m_bRunning;
45
mutable
plTime
m_LastUpdate;
46
plTime
m_LastCheckpoint;
47
mutable
plTime
m_TotalDuration;
48
};
plStopwatch
A helper class to time the execution of code or other actions.
Definition
Stopwatch.h:8
plTime
The time class encapsulates a double value storing the time in seconds.
Definition
Time.h:12
Code
Engine
Foundation
Time
Stopwatch.h
Generated by
1.11.0