diff options
-rw-r--r-- | logging.cpp | 4 | ||||
-rw-r--r-- | totimer.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/logging.cpp b/logging.cpp index d426978..3d1fb14 100644 --- a/logging.cpp +++ b/logging.cpp @@ -6,6 +6,7 @@ #include "stdlib.h" #include<iostream> #include <fstream> +#include <ctime> using namespace std; void log(tres* res,int code) @@ -14,7 +15,8 @@ void log(tres* res,int code) { ofstream fot; fot.open("~/.pomodori"); - fot<<1<<endl; + time_t now = time(0); + fot<<ctime(&now)<<endl; } exit(0); }
\ No newline at end of file diff --git a/totimer.cpp b/totimer.cpp index 8bdbfe2..b632ebf 100644 --- a/totimer.cpp +++ b/totimer.cpp @@ -4,7 +4,6 @@ #include "totimer.h" #include<stdlib.h> -#include<stdio.h> void quit(NotifyNotification *note,gpointer user_data) { |