Is there a simple way of determining how many (if any) leap seconds are applied for a given implementation of:
time_t unix_seconds = mktime(&my_tm);
For example, is there a field that is populated in my_tm?
Otherwise, I suppose my option is test for known time_t values for given times bordering leap second transitions, but it would be nice if there was something more convenient.
you can do a loop of your implementation and calculate an average of time it takes.
"diff" is the time it takes in ms