Пример #1
0
//----------- CurrentDateTime
struct tm* CurrentDateTime()
  {
#ifdef TIMETRACE

    if (g_DebugFile.m_UseDebug)
      return g_DebugFile._CurrentDateTime();
    else
      return NULL;

#endif // TIMETRACE
    return NULL;
  }
Пример #2
0
//----------- 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-";
  }