Changeset 8271c78 in network-game for common/Common.cpp


Ignore:
Timestamp:
Aug 1, 2013, 2:15:49 AM (11 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
f9cb9fb
Parents:
d05086b
Message:

The client has basic log files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/Common.cpp

    rd05086b r8271c78  
    66#if defined WINDOWS
    77   #include <Windows.h>
    8 #elif defined LINUX
    9    #include <ctime>
    108#endif
     9
     10#include <ctime>
    1111
    1212using namespace std;
     
    4242
    4343string getCurrentDateTimeString() {
     44   ostringstream timeString;
     45
    4446   time_t millis = time(NULL);
    4547   struct tm *time = localtime(&millis);
    4648
    47    ostringstream timeString;
    4849   timeString << time->tm_hour << ":" << time->tm_min << ":"<< time->tm_sec << " " << (time->tm_mon+1) << "/" << time->tm_mday << "/" << (time->tm_year+1900);
    4950
Note: See TracChangeset for help on using the changeset viewer.