This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Florian Weimer wrote:
Given that time has no stringent accuracy requirements, this shouldn't come as a surprise.
In what sense does 'time' have less-stringent accuracy requirements than clock_gettime (CLOCK_REALTIME) does? Can 'time' return a value that disagrees with the time_t part of what clock_gettime (CLOCK_REALTIME) returns? Any such disagreement would cause application bugs that could well be unlikely and hard to track down; also, if there is disagreement, replacing calls to 'time' with calls to clock_gettime might not be advisable even aside from performance issues.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |