P
poison.summer
Hello
I use the following function to print out the time. But I wonder
whether I can be more accurate
like print out the microsecond
Thanks a lot!
void Print_time()
{
time_t now;
struct tm broken_down_now;
char char_representation_of_now[22];
now = time(0);
broken_down_now = *localtime(&now);
strftime(char_representation_of_now,
sizeof char_representation_of_now,
"%Y-%m-%d %H:%M:%S",
&broken_down_now);
log(fp,"%s\t", char_representation_of_now);
}
I use the following function to print out the time. But I wonder
whether I can be more accurate
like print out the microsecond
Thanks a lot!
void Print_time()
{
time_t now;
struct tm broken_down_now;
char char_representation_of_now[22];
now = time(0);
broken_down_now = *localtime(&now);
strftime(char_representation_of_now,
sizeof char_representation_of_now,
"%Y-%m-%d %H:%M:%S",
&broken_down_now);
log(fp,"%s\t", char_representation_of_now);
}