mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Clean up getTime helpers
This increases size of the getTime return values to 64 bits. It also removes the TimeGetter classes since the getTime functions are now very precise.
This commit is contained in:
18
src/main.cpp
18
src/main.cpp
@@ -107,24 +107,6 @@ static bool migrate_map_database(const GameParams &game_params, const Settings &
|
||||
|
||||
/**********************************************************************/
|
||||
|
||||
/*
|
||||
gettime.h implementation
|
||||
*/
|
||||
|
||||
#ifdef SERVER
|
||||
|
||||
u32 getTimeMs()
|
||||
{
|
||||
/* Use imprecise system calls directly (from porting.h) */
|
||||
return porting::getTime(PRECISION_MILLI);
|
||||
}
|
||||
|
||||
u32 getTime(TimePrecision prec)
|
||||
{
|
||||
return porting::getTime(prec);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
FileLogOutput file_log_output;
|
||||
|
||||
|
Reference in New Issue
Block a user