|
@@ -45,16 +45,6 @@ static const char* connect_failed_rtamsg_table[] = {
|
|
|
};
|
|
|
|
|
|
|
|
|
-#ifdef RVC_OS_LINUX
|
|
|
-static unsigned long GetTickCount()
|
|
|
-{
|
|
|
- struct timespec ts;
|
|
|
- clock_gettime(CLOCK_MONOTONIC, &ts);
|
|
|
- return (ts.tv_sec * 1000 + ts.tv_nsec / 1000000);
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
-
|
|
|
class SyncServiceClient:public SyncService_ClientBase
|
|
|
{
|
|
|
public:
|
|
@@ -877,7 +867,7 @@ void ACMCallFSM::s11_on_entry()
|
|
|
LogWarn(Severity_Low, Error_Debug, LOG_WARN_COUNTERCONNECT_MAKECALL,"begin make call");
|
|
|
m_uConnectTime = y2k_time_now();
|
|
|
m_bConnected = false;
|
|
|
- m_lConnectCostTime = GetTickCount();
|
|
|
+ m_lConnectCostTime = SP::Module::Comm::RVCGetTickCount();
|
|
|
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setLogCode("QLR0402304Z80101")("begin remote video call");
|
|
|
|
|
@@ -1454,7 +1444,7 @@ void ACMCallFSM::s3_on_entry()
|
|
|
unsigned int unowtime = y2k_time_now();
|
|
|
LogWarn(Severity_Low, Error_Debug, LOG_WARN_COUNTERCONNECT_CALL_CONNECTING_TIME, CSimpleStringA::Format("handfree call connecting time is %us.", unowtime - m_uConnectTime).GetData());
|
|
|
m_uConnectTime = unowtime;
|
|
|
- long lnowtime = GetTickCount();
|
|
|
+ long lnowtime = SP::Module::Comm::RVCGetTickCount();
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("RemoteVideoCall::Connecting").setCostTime(lnowtime - m_lConnectCostTime)("RemoteVideoCall::Connecting");
|
|
|
m_lConnectCostTime = lnowtime;
|
|
|
}
|
|
@@ -1507,7 +1497,7 @@ void ACMCallFSM::s4_on_entry()
|
|
|
unsigned int unowtime = y2k_time_now();
|
|
|
LogWarn(Severity_Low, Error_Debug, LOG_WARN_COUNTERCONNECT_CALL_CONNECTING_TIME, CSimpleStringA::Format("pickup call connecting time is %us.", unowtime - m_uConnectTime).GetData());
|
|
|
m_uConnectTime = unowtime;
|
|
|
- long lnowtime = GetTickCount();
|
|
|
+ long lnowtime = SP::Module::Comm::RVCGetTickCount();
|
|
|
DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("RemoteVideoCall::Connecting").setCostTime(lnowtime - m_lConnectCostTime)("RemoteVideoCall::Connecting");
|
|
|
m_lConnectCostTime = lnowtime;
|
|
|
}
|