ManaPlus
|
#include "localconsts.h"
Go to the source code of this file.
Functions | |
void | startTimers () |
void | stopTimers () |
int | get_elapsed_time (const int startTime) |
int | get_elapsed_time1 (const int startTime) |
Variables | |
volatile int | fps |
volatile int | lps |
volatile int | tick_time |
volatile time_t | cur_time |
volatile int | frame_count |
volatile int | logic_count |
int get_elapsed_time | ( | const int | startTime | ) |
Returns elapsed time. (Warning: supposes the delay is always < 100 seconds)
Definition at line 94 of file timer.cpp.
References MAX_TICK_VALUE, MILLISECONDS_IN_A_TICK, and tick_time.
Referenced by Palette::advanceGradient(), Being::getOffset(), Being::logic(), LocalPlayer::logic(), SkillDialog::slowLogic(), and Map::updateAmbientLayers().
int get_elapsed_time1 | ( | const int | startTime | ) |
Definition at line 105 of file timer.cpp.
References MAX_TICK_VALUE, and tick_time.
Referenced by Being::logic(), Game::slowLogic(), and CompoundSprite::updateImages().
void startTimers | ( | ) |
Definition at line 113 of file timer.cpp.
References MILLISECONDS_IN_A_TICK, anonymous_namespace{timer.cpp}::mLogicCounterId(), anonymous_namespace{timer.cpp}::mSecondsCounterId(), nextSecond(), nextTick(), and tick_time.
Referenced by Client::gameInit().
void stopTimers | ( | ) |
Definition at line 121 of file timer.cpp.
References anonymous_namespace{timer.cpp}::mLogicCounterId(), and anonymous_namespace{timer.cpp}::mSecondsCounterId().
Referenced by Client::gameClear().
|
extern |
Frames counted in the last second
Definition at line 54 of file timer.cpp.
Referenced by Game::adjustPerfomance(), MapDebugTab::logic(), and nextSecond().
|
extern |
Counts the frames during one second
Definition at line 56 of file timer.cpp.
Referenced by Client::gameExec(), and nextSecond().
|
extern |
Counts the logic during one second
Definition at line 57 of file timer.cpp.
Referenced by Client::gameExec(), and nextSecond().
|
extern |
Logic processed per second
Definition at line 55 of file timer.cpp.
Referenced by StatDebugTab::logic(), and nextSecond().
|
extern |
Tick counter
Definition at line 53 of file timer.cpp.
Referenced by get_elapsed_time(), get_elapsed_time1(), nextTick(), and startTimers().