mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Use time_get_microseconds in ChoseMaster class
This commit is contained in:
parent
ca14d87b13
commit
a43d1698c5
|
@ -143,10 +143,10 @@ void CChooseMaster::CJob::Run()
|
|||
{
|
||||
continue;
|
||||
}
|
||||
int64 StartTime = time_get();
|
||||
int64 StartTime = time_get_microseconds();
|
||||
CGet Get(pUrl, Timeout, HTTPLOG::FAILURE);
|
||||
IEngine::RunJobBlocking(&Get);
|
||||
int Time = (time_get() - StartTime) * 1000 / time_freq();
|
||||
int Time = (time_get_microseconds() - StartTime) / 1000;
|
||||
if(Get.State() != HTTP_DONE)
|
||||
{
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue