Ignore:
Timestamp:
Aug 31, 2008, 4:47:17 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
4074e70b
Parents:
674a980
Message:

2008-08-31 Joel Sherrill <joel.sherrill@…>

  • timer/timer.c: Rename timer driver methods to follow RTEMS programming conventions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/unix/posix/timer/timer.c

    r674a980 r424ee2ba  
    2424struct timezone Time_zone;
    2525
    26 rtems_boolean   Timer_driver_Find_average_overhead;
     26rtems_boolean   benchmark_timerfind_average_overhead;
    2727
    28 void Timer_initialize()
     28void benchmark_timerinitialize()
    2929{
    3030   gettimeofday( &Timer_start, &Time_zone );
     
    3535#define LEAST_VALID       10 /* Don't trust a value lower than this */
    3636
    37 int Read_timer()
     37int benchmark_timerread()
    3838{
    3939  int total;
     
    4949  }
    5050
    51   if ( Timer_driver_Find_average_overhead == 1 )
     51  if ( benchmark_timerfind_average_overhead == 1 )
    5252      return total;          /* in countdown units */
    5353  else {
     
    5858}
    5959
    60 rtems_status_code Empty_function( void )
     60rtems_status_code benchmark_timerempty_function( void )
    6161{
    6262  return RTEMS_SUCCESSFUL;
    6363}
    6464
    65 void Set_find_average_overhead(
     65void benchmark_timerdisable_subtracting_average_overhead(
    6666  rtems_boolean find_flag
    6767)
    6868{
    69   Timer_driver_Find_average_overhead = find_flag;
     69  benchmark_timerfind_average_overhead = find_flag;
    7070}
Note: See TracChangeset for help on using the changeset viewer.