I'm having what is below:
#define DATE_AND_TIME_FORMAT "%Y-%m-%d %H:%M:%S"
#define DATE_AND_TIME_SIZE 25
char buffer[DATE_AND_TIME_SIZE];
static char *get_date_and_time (char *buffer)
{
time_t t = time (0);
strftime (buffer, DATE_AND_TIME_SIZE, DATE_AND_TIME_FORMAT, localtime (&t));
return buffer;
}
Can anyone of you tell me how to get a time format which includes the milliseconds "fff (according to the MSDN Microsoft)?