Resolution time_tis not more than one second on most platforms. That is, on most platforms it time_twill be an integer (32- or 64-bit) value that counts the number of seconds that have passed since midnight January 1, 1970 (UTC), and can reach only one second.
Therefore, the sum of the values time_twill also show only one second resolution (without the decimal part, even after converting to double.)
As stated above, which native or OpenMP call do you use to get the values time_tyou are trying to copy?
* nix getrusage(), rusage ( ), user/kernel times, gettimeofday(), , tv_sec, tv_usec struct timeval, double ( , ) time_t:
struct timeval {
time_t tv_sec;
suseconds_t tv_usec;
};
, GetThreadTimes/GetProcessTimes / _ftime Windows, FILETIME::dwHighDateTime/dwLowDateTime.