mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
src/Mayaqua/Tick64.c: reorder guards in order to silence coverity
This commit is contained in:
parent
7c72e008eb
commit
fd16f73c0e
@ -133,11 +133,10 @@ static EVENT *halt_tick_event = NULL;
|
|||||||
// Get the high-resolution time
|
// Get the high-resolution time
|
||||||
UINT64 TickHighres64()
|
UINT64 TickHighres64()
|
||||||
{
|
{
|
||||||
UINT64 ret = 0;
|
|
||||||
|
|
||||||
#ifdef OS_WIN32
|
#ifdef OS_WIN32
|
||||||
|
|
||||||
ret = (UINT64)(MsGetHiResTimeSpan(MsGetHiResCounter()) * 1000.0f);
|
return (UINT64)(MsGetHiResTimeSpan(MsGetHiResCounter()) * 1000.0f);
|
||||||
|
|
||||||
#else // OS_WIN32
|
#else // OS_WIN32
|
||||||
|
|
||||||
@ -145,7 +144,6 @@ UINT64 TickHighres64()
|
|||||||
|
|
||||||
#endif // OS_WIN32
|
#endif // OS_WIN32
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert the Tick value to time
|
// Convert the Tick value to time
|
||||||
|
Loading…
Reference in New Issue
Block a user