[Project64] Cleanup ProfilingClass.cpp
This commit is contained in:
parent
50df137466
commit
cf2d34fed3
|
@ -69,7 +69,8 @@ SPECIAL_TIMERS CProfiling::StopTimer() {
|
|||
PROFILE_ENRTY Entry = m_Entries.find(m_CurrentTimerAddr);
|
||||
if (Entry != m_Entries.end()) {
|
||||
Entry->second += TimeTaken;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
m_Entries.insert(PROFILE_ENRTIES::value_type(m_CurrentTimerAddr, TimeTaken));
|
||||
}
|
||||
|
||||
|
@ -103,7 +104,6 @@ void CProfiling::ShowCPU_Usage() {
|
|||
Entry = m_Entries.find(Timer_Idel);
|
||||
if (Entry != m_Entries.end()) { Idle = Entry->second; }
|
||||
|
||||
|
||||
TotalTime = CPU + Alist + Dlist + Idle;
|
||||
|
||||
g_Notify->DisplayMessage(0, stdstr_f("r4300i: %0.1f%c GFX: %0.1f%c Alist: %0.1f%c Idle: %0.1f%c",
|
||||
|
|
Loading…
Reference in New Issue