aboutsummaryrefslogtreecommitdiff
path: root/src/database/database-files.cpp
Commit message (Expand)AuthorAge
* Move PlayerSAO to dedicated filesLoic Blot2020-04-11
* Consistent HP and damage types (#8167)SmallJoker2019-02-10
* Fix on_successful_save -> onSuccessfulSaveLoïc Blot2019-01-04
* Fix various player save issues (performance penalty on sql backends + bugs)Loïc Blot2019-01-04
* Player file directory must be only created when using file backend.Loïc Blot2019-01-04
* Add Lua methods 'set_rotation()' and 'get_rotation()' (#7395)CoderForTheBetter2018-11-28
* Replace auth.txt with SQLite auth database (#7279)Ben Deutsch2018-08-05
* Move files to subdirectories (#6599)Vitaliy2017-11-08
t, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef UTIL_TIMETAKER_HEADER #define UTIL_TIMETAKER_HEADER #include "../irrlichttypes.h" #include "../gettime.h" /* TimeTaker */ class TimeTaker { public: TimeTaker(const char *name, u32 *result=NULL, TimePrecision=PRECISION_MILLI); ~TimeTaker() { stop(); } u32 stop(bool quiet=false); u32 getTimerTime(); private: const char *m_name; u32 m_time1; bool m_running; TimePrecision m_precision; u32 *m_result; }; #endif