clock_gettime in red-hat linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



By default, clock_gettime is not available on RedHat Linux. site says it
is available as kernel patches. But from where I do find the patches? &
if it is not available, would the following be treated as equivalent of
clock_gettime

if original was
clock_gettime(CLOCK_REALTIME, &timo);

& implementation would be

                struct timeval tv;
                (void) gettimeofday(&tv, 0);
                TIMEVAL_TO_TIMESPEC(&tv, &timo);


-Ajay




_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux