Changeset 8fa4549 in rtems for cpukit/posix


Ignore:
Timestamp:
Dec 22, 2017, 12:51:13 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f14a04c6
Parents:
9480815a
git-author:
Sebastian Huber <sebastian.huber@…> (12/22/17 12:51:13)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/02/18 14:01:20)
Message:

posix: Use one second based CLOCK_MONOTONIC

This simplifies the CLOCK_MONOTONIC based time services. It is
potentially important for libbsd.

Close #3265.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/clockgettime.c

    r9480815a r8fa4549  
    4141    return 0;
    4242  }
     43
    4344#ifdef CLOCK_MONOTONIC
    4445  if ( clock_id == CLOCK_MONOTONIC ) {
    45     _TOD_Get_zero_based_uptime_as_timespec( tp );
     46    _Timecounter_Nanouptime( tp );
    4647    return 0;
    4748  }
     
    5051#ifdef _POSIX_CPUTIME
    5152  if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) {
    52     _TOD_Get_zero_based_uptime_as_timespec( tp );
     53    _Timecounter_Nanouptime( tp );
    5354    return 0;
    5455  }
Note: See TracChangeset for help on using the changeset viewer.