Index: client/.gitignore
===================================================================
--- client/.gitignore	(revision d05086b35357b52ba3843d9c5195f9bd226aa3e7)
+++ client/.gitignore	(revision 8271c78c085cf1aced499458d814982503a48182)
@@ -7,2 +7,3 @@
 gameClient
 allegro.log
+client.log
Index: client/Client/main.cpp
===================================================================
--- client/Client/main.cpp	(revision d05086b35357b52ba3843d9c5195f9bd226aa3e7)
+++ client/Client/main.cpp	(revision 8271c78c085cf1aced499458d814982503a48182)
@@ -20,4 +20,5 @@
 #include <iostream>
 #include <sstream>
+#include <fstream>
 #include <map>
 
@@ -126,4 +127,5 @@
    bool fullscreen = false;
    debugging = false;
+   ofstream outputLog;
 
    scoreBlue = 0;
@@ -136,4 +138,7 @@
       return -1;
    }
+
+   outputLog.open("client.log", ios::app);
+   outputLog << "Started client on " << getCurrentDateTimeString() << endl;
 
    if (al_init_primitives_addon())
@@ -496,5 +501,8 @@
    al_destroy_display(display);
    al_destroy_timer(timer);
- 
+
+   outputLog << "Stopped client on " << getCurrentDateTimeString() << endl;
+   outputLog.close();
+
    return 0;
 }
Index: common/Common.cpp
===================================================================
--- common/Common.cpp	(revision d05086b35357b52ba3843d9c5195f9bd226aa3e7)
+++ common/Common.cpp	(revision 8271c78c085cf1aced499458d814982503a48182)
@@ -6,7 +6,7 @@
 #if defined WINDOWS
    #include <Windows.h>
-#elif defined LINUX
-   #include <ctime>
 #endif
+
+#include <ctime>
 
 using namespace std;
@@ -42,8 +42,9 @@
 
 string getCurrentDateTimeString() {
+   ostringstream timeString;
+
    time_t millis = time(NULL);
    struct tm *time = localtime(&millis);
 
-   ostringstream timeString;
    timeString << time->tm_hour << ":" << time->tm_min << ":"<< time->tm_sec << " " << (time->tm_mon+1) << "/" << time->tm_mday << "/" << (time->tm_year+1900);
 
