//----------- CurrentDateTime struct tm* CurrentDateTime() { #ifdef TIMETRACE if (g_DebugFile.m_UseDebug) return g_DebugFile._CurrentDateTime(); else return NULL; #endif // TIMETRACE return NULL; }
//----------- CurrentDateTimeStr char* CurrentDateTimeStr() { #ifdef TIMETRACE if (g_DebugFile.m_UseDebug) { struct tm* ptm = g_DebugFile._CurrentDateTime(); return (ptm != NULL ? asctime(ptm) : ""); } else return ""; #endif // TIMETRACE return "-TIMETRACE DISABLED-"; }