Class that compute how long it takes for a program to be executed, and sequentially measures the time of execution of each function. More...
#include <Profiler.hpp>
Public Member Functions | |
| Timer (const char *name) | |
| Creates the Scope Timer. More... | |
| ~Timer () | |
| Destroys this timer. More... | |
| void | Stop () |
| Stops this timer. More... | |
Private Attributes | |
| const char * | m_Name |
| Name of the function to be timed. More... | |
| std::chrono::time_point< std::chrono::high_resolution_clock > | m_StartTimepoint |
| Time when the timer starts. More... | |
| bool | m_Stopped |
| Whether or not the timer is stoped. More... | |
Class that compute how long it takes for a program to be executed, and sequentially measures the time of execution of each function.
|
inline |
Creates the Scope Timer.
| name | Name o the function to be timed. |
|
inline |
Destroys this timer.
|
inline |
Stops this timer.
|
private |
Name of the function to be timed.
|
private |
Time when the timer starts.
|
private |
Whether or not the timer is stoped.