Changeset a93baa43 in rtems


Ignore:
Timestamp:
Jan 22, 2001, 2:19:05 PM (19 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
b978374
Parents:
9f87484
Message:

2001-01-12 Joel Sherrill <joel@…>

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

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/ChangeLog

    r9f87484 ra93baa43  
     12001-01-12      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/clockgetres.c: Fixed match problem.  We are not converting
     4        an interval to a timespec -- it is actually a real number of
     5        microseconds.
     6
    172001-01-22      Michael Hamel <mhamel@adi.co.nz>
    28
  • c/src/exec/posix/src/clockgetres.c

    r9f87484 ra93baa43  
    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 
  • cpukit/posix/ChangeLog

    r9f87484 ra93baa43  
     12001-01-12      Joel Sherrill <joel@OARcorp.com>
     2
     3        * src/clockgetres.c: Fixed match problem.  We are not converting
     4        an interval to a timespec -- it is actually a real number of
     5        microseconds.
     6
    172001-01-22      Michael Hamel <mhamel@adi.co.nz>
    28
  • cpukit/posix/src/clockgetres.c

    r9f87484 ra93baa43  
    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.