mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add varying levels of precision to TimeTaker
This commit is contained in:
parent
5e7e0347cd
commit
df49b93877
5 changed files with 108 additions and 17 deletions
|
@ -31,7 +31,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
Normal build: main.cpp
|
||||
Server build: servermain.cpp
|
||||
*/
|
||||
enum TimePrecision {
|
||||
PRECISION_SECONDS,
|
||||
PRECISION_MILLI,
|
||||
PRECISION_MICRO,
|
||||
PRECISION_NANO
|
||||
};
|
||||
|
||||
extern u32 getTimeMs();
|
||||
extern u32 getTime(TimePrecision prec);
|
||||
|
||||
/*
|
||||
Timestamp stuff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue