#include #include #include "common.h" // Prints the time void get_time_stamp(char* buf) { time_t ltime; struct tm result; ltime = time(NULL); localtime_r(<ime, &result); asctime_r(&result, buf); }