aboutsummaryrefslogtreecommitdiff
path: root/src/gettime.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gettime.h')
-rw-r--r--src/gettime.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gettime.h b/src/gettime.h
index 44c159026..6e70b8533 100644
--- a/src/gettime.h
+++ b/src/gettime.h
@@ -45,8 +45,8 @@ extern u32 getTime(TimePrecision prec);
Timestamp stuff
*/
-#include <time.h>
#include <string>
+#include <time.h>
inline std::string getTimestamp()
{
@@ -54,10 +54,9 @@ inline std::string getTimestamp()
// This is not really thread-safe but it won't break anything
// except its own output, so just go with it.
struct tm *tm = localtime(&t);
- char cs[20]; //YYYY-MM-DD HH:MM:SS + '\0'
+ char cs[20]; // YYYY-MM-DD HH:MM:SS + '\0'
strftime(cs, 20, "%Y-%m-%d %H:%M:%S", tm);
return cs;
}
-
#endif