mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Uncached time_get by default
This commit is contained in:
parent
3df4c76e57
commit
140173311e
|
@ -635,18 +635,13 @@ void lock_release(LOCK lock)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int new_tick = 1;
|
static int new_tick = -1;
|
||||||
|
|
||||||
void set_new_tick()
|
void set_new_tick()
|
||||||
{
|
{
|
||||||
new_tick = 1;
|
new_tick = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_uncached_time_get()
|
|
||||||
{
|
|
||||||
new_tick = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ----- time ----- */
|
/* ----- time ----- */
|
||||||
int64 time_get()
|
int64 time_get()
|
||||||
{
|
{
|
||||||
|
|
|
@ -437,7 +437,6 @@ typedef long long int64;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void set_new_tick();
|
void set_new_tick();
|
||||||
void set_uncached_time_get();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Function: time_get
|
Function: time_get
|
||||||
|
|
|
@ -3116,8 +3116,6 @@ int main(int argc, const char **argv) // ignore_convention
|
||||||
dbg_enable_threaded();
|
dbg_enable_threaded();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
set_uncached_time_get();
|
|
||||||
|
|
||||||
CClient *pClient = CreateClient();
|
CClient *pClient = CreateClient();
|
||||||
IKernel *pKernel = IKernel::Create();
|
IKernel *pKernel = IKernel::Create();
|
||||||
pKernel->RegisterInterface(pClient);
|
pKernel->RegisterInterface(pClient);
|
||||||
|
|
Loading…
Reference in a new issue