Skip to content

Commit a5bfeb9

Browse files
committed
Added client/world/connect durations to Debug 'summary'
1 parent cb80c2b commit a5bfeb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

world_debug.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,12 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
974974
Note (TFormat ("Compiled: %s.", __DATE__));
975975
Note (CTime::GetCurrentTime().Format (TranslateTime ("Time now: %A, %B %d, %Y, %#I:%M %p")));
976976

977+
CTimeSpan ts = CTime::GetCurrentTime() - App.m_whenClientStarted;
978+
Note (ts.Format ("Client running for: %Dd %Hh %Mm %Ss"));
979+
ts = CTime::GetCurrentTime() - m_whenWorldStarted;
980+
Note (ts.Format ("World opened for: %Dd %Hh %Mm %Ss"));
981+
ts = CTime::GetCurrentTime() - m_tConnectTime;
982+
Note (ts.Format ("World connected for: %Dd %Hh %Mm %Ss"));
977983

978984
// work out operating system
979985

0 commit comments

Comments
 (0)