NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
c_counter.hpp
1#pragma once
2
3#include <types.h>
4
5/// @brief Global frame counter utility class.
6/// @ingroup clib
7class cCounter_c {
8public:
9 static void clear(); ///< Clears the counters.
10
11 /// @brief The total frames elapsed while the main engine loop (fManager_c::mainLoop) is running.
12 /// @details Does not advance when main loop execution is halted or suspended.
13 static u32 m_exeFrame;
14
15 /// @brief The total frames elapsed since game startup.
16 /// @details Unlike ::m_exeFrame, this counter doesn't pause when the Home Menu is open.
17 static u32 m_gameFrame;
18};
Global frame counter utility class.
Definition c_counter.hpp:7
static u32 m_exeFrame
The total frames elapsed while the main engine loop (fManager_c::mainLoop) is running.
Definition c_counter.hpp:13
static void clear()
Clears the counters.
Definition c_counter.cpp:6
static u32 m_gameFrame
The total frames elapsed since game startup.
Definition c_counter.hpp:17