summaryrefslogtreecommitdiff
path: root/logging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logging.cpp')
-rw-r--r--logging.cpp4
1 files changed, 3 insertions, 1 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