summaryrefslogblamecommitdiffstats
path: root/c/src/lib/libbsp/shared/timerstub.c
blob: bd8909739da5ff5bf1854aadc39733a747c2d9db (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
  











                                                                     
                                           
 
                                     

 
 
                              
 
                                            



             
                                                          
                

 
                                                    
 
/*
 *  This file implements a stub benchmark timer that is sufficient to
 *  satisfy linking the RTEMS Benchmarks.
 *
 *  COPYRIGHT (c) 1989-2001.
 *  On-Line Applications Research Corporation (OAR).
 *
 *
 *  $Id$
 */

#include <bsp.h>

bool benchmark_timer_find_average_overhead;

void benchmark_timer_initialize(void)
{
}

int benchmark_timer_read(void)
{
  if (benchmark_timer_find_average_overhead)
    return 1;
  return 0;
}

void benchmark_timer_disable_subtracting_average_overhead(
  bool find_flag
)
{
  benchmark_timer_find_average_overhead = find_flag;
}