Initial commit

This commit is contained in:
2017-04-28 18:45:26 +02:00
commit 37fe983738
23 changed files with 1319 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#include <ctime>
#include <string>
#include "util.h"
std::string getTimeString()
{
time_t rawtime;
struct tm* timeinfo;
char buffer[80];
time (&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer, 80, "%Y%m%d-%H%M%S", timeinfo);
return std::string(buffer);
}