2 //=============================================================================
8 * @author Aniruddha Gokhale
10 //=============================================================================
16 #include "tao/Basic_Types.h"
18 #include "ace/Profile_Timer.h"
19 #include "ace/CORBA_macros.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
30 TAO_END_VERSIONED_NAMESPACE_DECL
41 /// prints the time stats
42 void print_stats (void);
44 /// print the exception
45 void print_exception (const char *call_name
);
48 void start_timer (void);
51 void stop_timer (void);
54 CORBA::ULong
call_count (void);
56 /// set the call count
57 void call_count (CORBA::ULong
);
59 /// return the error count
60 CORBA::ULong
error_count (void);
63 void error_count (CORBA::ULong
);
65 /// set the number of times the test will be run
66 void iterations (CORBA::ULong iters
);
69 /// # of calls made to functions
70 CORBA::ULong call_count_
;
72 /// # of errors incurred in the lifetime of the application.
73 CORBA::ULong error_count_
;
75 /// for timing the test
76 ACE_Profile_Timer timer_
;
78 /// holds the elapsed time for each iteration
79 ACE_Profile_Timer::ACE_Elapsed_Time
*elapsed_time_
;
82 #endif /* RESULTS_H */