Changeset 710b4e0 in rtems


Ignore:
Timestamp:
Oct 10, 2001, 6:37:02 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
fda19968
Parents:
7ec48c0
Message:

2001-09-28 Joel Sherrill <joel@…>

  • src/clockgetres.c: Fixed math problem. We are not converting an interval to a timespec -- it is actually a real number of microseconds.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/clockgetres.c

    r7ec48c0 r710b4e0  
    3737    case CLOCK_PROCESS_CPUTIME:
    3838    case CLOCK_THREAD_CPUTIME:
    39       if ( res )
    40         _POSIX_Interval_to_timespec( _TOD_Microseconds_per_tick, res );
     39      if ( res ) {
     40        res->tv_sec = _TOD_Microseconds_per_tick / 1000000;
     41        res->tv_nsec = _TOD_Microseconds_per_tick * 1000;
     42        /* _POSIX_Interval_to_timespec( _TOD_Microseconds_per_tick, res );  */
     43      }
    4144      break;
    4245 
Note: See TracChangeset for help on using the changeset viewer.