mirror of
https://github.com/diamante0018/MonitorRam.git
synced 2025-05-09 22:14:54 +00:00
16 lines
302 B
C
16 lines
302 B
C
#include "common.h"
|
|
|
|
// Prints the time
|
|
void printTimeStamp(FILE *fp)
|
|
{
|
|
time_t ltime;
|
|
struct tm result;
|
|
char stime[32];
|
|
bzero(stime, sizeof(stime));
|
|
|
|
ltime = time(NULL);
|
|
localtime_r(<ime, &result);
|
|
asctime_r(&result, stime);
|
|
fprintf(fp, "\nTimeStamp: %s\n", stime);
|
|
}
|