Changeset 381ef5c in rtems


Ignore:
Timestamp:
Oct 20, 2017, 6:33:03 AM (17 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
ecef3698
Parents:
e0dc6ef
git-author:
Sebastian Huber <sebastian.huber@…> (10/20/17 06:33:03)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/24/17 07:37:27)
Message:

confdefs: Warn about problematic ticks per second

A non-integer clock ticks per second value may lead to inaccurate time
format conversions.

Update #3117.
Update #3182.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/include/confdefs.h

    re0dc6ef r381ef5c  
    22882288  #endif
    22892289
     2290  #if 1000000 % CONFIGURE_MICROSECONDS_PER_TICK != 0
     2291    #warning "The clock ticks per second is not an integer"
     2292  #endif
     2293
    22902294  #define _CONFIGURE_TICKS_PER_SECOND (1000000 / CONFIGURE_MICROSECONDS_PER_TICK)
    22912295
Note: See TracChangeset for help on using the changeset viewer.