diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-16 17:36:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-16 17:36:01 +0000 |
commit | 3d66dfc1cb98974df47bf4735291a674d34038bc (patch) | |
tree | 23d592a42aa1a333463855389a9a6a0151a3f704 /cpukit/libcsupport/src/__times.c | |
parent | 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-3d66dfc1cb98974df47bf4735291a674d34038bc.tar.bz2 |
2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/__times.c, posix/src/adjtime.c,
posix/src/clockgetres.c, posix/src/sysconf.c,
rtems/src/clockgettickspersecond.c, rtems/src/clockgettod.c,
rtems/src/clockset.c, rtems/src/clocktodvalidate.c,
score/src/timespecfromticks.c, score/src/timespectoticks.c,
score/src/ts64toticks.c: More case converted to use configuration
table entry not _TOD_Microseconds_per_tick.
Diffstat (limited to 'cpukit/libcsupport/src/__times.c')
-rw-r--r-- | cpukit/libcsupport/src/__times.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c index 8ddad3ad9f..255057cc6e 100644 --- a/cpukit/libcsupport/src/__times.c +++ b/cpukit/libcsupport/src/__times.c @@ -59,8 +59,10 @@ clock_t _times( _Timestamp_Set( &per_tick, - _TOD_Microseconds_per_tick / TOD_MILLISECONDS_PER_SECOND, - (_TOD_Microseconds_per_tick % TOD_MILLISECONDS_PER_SECOND) / 1000 + rtems_configuration_get_microseconds_per_tick() / + TOD_MICROSECONDS_PER_SECOND, + (rtems_configuration_get_nanoseconds_per_tick() % + TOD_NANOSECONDS_PER_SECOND) ); _Timestamp_Divide( |