Skip to content

Commit 9c4f1b5

Browse files
timestamp ref
1 parent 616efd7 commit 9c4f1b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

timestamp.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include <iostream>
22
using namespace std;
3-
3+
4+
// https://stackoverflow.com/questions/997946/how-to-get-current-time-and-date-in-c
5+
46
std::string get_timestamp() {
57
time_t now = time(NULL);
68
struct tm* ltm = localtime(&now);

0 commit comments

Comments
 (0)