Use time_get_microseconds in ChoseMaster class

This commit is contained in:
Jupeyy 2021-06-15 02:18:36 +02:00
parent ca14d87b13
commit a43d1698c5

View file

@ -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;