summaryrefslogtreecommitdiff
path: root/logging.cpp
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2015-09-04 08:46:14 -0600
committerJoe Zhao <ztuowen@gmail.com>2015-09-04 08:46:14 -0600
commit1c8adbdeaf48fd9a2d7aa827a5bc761ed21b4796 (patch)
treebb6b7d0dcf6c609a564fee3c5605b84f3de80cba /logging.cpp
parent8786ca9366a76c6695a6cb4cb2bcfb32e913d950 (diff)
downloadpomodori-1c8adbdeaf48fd9a2d7aa827a5bc761ed21b4796.tar.gz
pomodori-1c8adbdeaf48fd9a2d7aa827a5bc761ed21b4796.tar.bz2
pomodori-1c8adbdeaf48fd9a2d7aa827a5bc761ed21b4796.zip
added time
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