diff options
author | Doug Rupp <rupp@adacore.com> | 2023-10-12 12:31:46 -0700 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-11-21 10:57:41 +0100 |
commit | fee97b366b10acbbc0aa5300c2ad753c18d2b266 (patch) | |
tree | 277e86f2a3aa913b7b22c6744b80f607f2cf0845 /gcc/d | |
parent | d75ca8a67e709c3e1dd99e2ada3d33563208c6c2 (diff) | |
download | gcc-fee97b366b10acbbc0aa5300c2ad753c18d2b266.zip gcc-fee97b366b10acbbc0aa5300c2ad753c18d2b266.tar.gz gcc-fee97b366b10acbbc0aa5300c2ad753c18d2b266.tar.bz2 |
ada: Use CLOCK_MONOTONIC on VxWorks
The monotonic clock keeps track of the time that has elapsed since
system startup; that is, the value returned by clock_gettime() is the
amount of time (in seconds and nanoseconds) that has passed since the
system booted. The monotonic clock cannot be reset. As a result,
time interval measurements made relative to the monotonic clock are
not subject to errors resulting from the clock time being unexpectedly
adjusted between the interval start and end.
gcc/ada/
* s-oscons-tmplt.c: #define CLOCK_RT_Ada "CLOCK_MONOTONIC" for
__vxworks
Diffstat (limited to 'gcc/d')
0 files changed, 0 insertions, 0 deletions