score: Merge tod implementation into one file

Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and
TOD_MILLISECONDS_TO_TICKS().
This commit is contained in:
Sebastian Huber
2013-07-25 15:10:11 +02:00
parent a2e3f33f39
commit 88c74ab115
95 changed files with 112 additions and 404 deletions

View File

@@ -23,6 +23,7 @@
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <sys/time.h>
#define CONFIGURE_INIT
@@ -81,13 +82,9 @@ rtems_task Init(
for (index=0 ; index <10 ; index++ ) {
struct timespec start, stop;
struct timespec diff;
#if 0
clock_gettime( CLOCK_REALTIME, &start );
clock_gettime( CLOCK_REALTIME, &stop );
#else
_TOD_Get( &start );
_TOD_Get( &stop );
#endif
subtract_em( &start, &stop, &diff );
printf( "Start: %s:%ld\nStop : %s:%ld",