void CDirstatApp::PeriodicalUpdateRamUsage() { if (GetTickCount() - m_lastPeriodicalRamUsageUpdate > 1200) { UpdateRamUsage(); m_lastPeriodicalRamUsageUpdate= GetTickCount(); } }
void CDirstatApp::PeriodicalUpdateRamUsage( ) { if ( GetTickCount64( ) - m_lastPeriodicalRamUsageUpdate > RAM_USAGE_UPDATE_INTERVAL ) { UpdateRamUsage( ); m_lastPeriodicalRamUsageUpdate = GetTickCount64( ); } }