| 3033 | } |
| 3034 | |
| 3035 | void CSystem::SetSystemGlobalState(const ESystemGlobalState systemGlobalState) |
| 3036 | { |
| 3037 | static CTimeValue s_startTime = CTimeValue(); |
| 3038 | if (systemGlobalState != m_systemGlobalState) |
| 3039 | { |
| 3040 | if (gEnv && gEnv->pTimer) |
| 3041 | { |
| 3042 | const CTimeValue endTime = gEnv->pTimer->GetAsyncTime(); |
| 3043 | const float numSeconds = endTime.GetDifferenceInSeconds(s_startTime); |
| 3044 | CryLog("SetGlobalState %d->%d '%s'->'%s' %3.1f seconds", |
| 3045 | m_systemGlobalState, systemGlobalState, |
| 3046 | CSystem::GetSystemGlobalStateName(m_systemGlobalState), CSystem::GetSystemGlobalStateName(systemGlobalState), |
| 3047 | numSeconds); |
| 3048 | s_startTime = gEnv->pTimer->GetAsyncTime(); |
| 3049 | } |
| 3050 | } |
| 3051 | m_systemGlobalState = systemGlobalState; |
| 3052 | } |
| 3053 | |
| 3054 | ////////////////////////////////////////////////////////////////////////// |
| 3055 | void* CSystem::GetRootWindowMessageHandler() |
no test coverage detected