Changeset 88c74ab in rtems for testsuites/samples


Ignore:
Timestamp:
Jul 25, 2013, 1:10:11 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
02632e8
Parents:
a2e3f33
git-author:
Sebastian Huber <sebastian.huber@…> (07/25/13 13:10:11)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/26/13 09:55:47)
Message:

score: Merge tod implementation into one file

Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and
TOD_MILLISECONDS_TO_TICKS().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/nsecs/init.c

    ra2e3f33 r88c74ab  
    2424#include <stdlib.h>
    2525#include <unistd.h>
     26#include <time.h>
    2627#include <sys/time.h>
    2728
     
    8283    struct timespec start, stop;
    8384    struct timespec diff;
    84 #if 0
     85
    8586    clock_gettime( CLOCK_REALTIME, &start );
    8687    clock_gettime( CLOCK_REALTIME, &stop );
    87 #else
    88     _TOD_Get( &start );
    89     _TOD_Get( &stop );
    90 #endif
    9188
    9289    subtract_em( &start, &stop, &diff );
Note: See TracChangeset for help on using the changeset viewer.