11 lines
223 B
C
11 lines
223 B
C
|
#include <logger.h>
|
||
|
|
||
|
char*
|
||
|
logger_get_timestamp()
|
||
|
{
|
||
|
time_t rawtime;
|
||
|
time(&rawtime);
|
||
|
strftime(_LOGGER_TIMESTAMP, _LOGGER_TIMESTAMP_SIZE, "%Y-%m-%d %H:%M:%S", localtime(&rawtime));
|
||
|
return _LOGGER_TIMESTAMP;
|
||
|
}
|