diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/msg.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -34,6 +34,7 @@ #include <string.h> #include <sys/stat.h> #include <template.h> +#include <time.h> #include <util.h> extern msg_t *msg; @@ -113,6 +114,12 @@ handle_file(const char *path) int run(void) { + time_t rawtime; + struct tm *timeinfo; + + time(&rawtime); + timeinfo = localtime(&rawtime); + printf("Generation started at: %s", asctime(timeinfo)); struct stat sb; if (stat(msg->base_directory, &sb) != 0 || !S_ISDIR(sb.st_mode)) { printf("%s does not exist.\n", msg->base_directory); |