For this program I need to "grab the start time of the entire process within the max. time precision avail including nanoseconds." in the format:
April 9, 2022 13:18:17.123456789
I am able to get everything but the nanoseconds. Is it possible and/or what do you recommend?
Here is what I have:
//%B - Full Month Name
//%e - day space padded (%d 0 padded)
//$G - year (with century)
//%R - 24-hour HH:MM time, equivalent to %H:%M
//%N - nanoseconds?
//%T - ISO 8601 time format (HH:MM:SS), equivalent to %H:%M:%S
#define BUFFERSIZE 256
char timeStringEnd[BUFFERSIZE] = {0};
time_t timeEnd = time(NULL);
struct tm *timePointerEnd = localtime(&timeEnd);
strftime(timeStringEnd, BUFFERSIZE, "\n%B%e, %G %T", timePointerEnd);
puts(timeStringEnd);
%N
doesn't want to work. Any supplemental material/sources on using timing is much appreciated . TIA