// cyCodeBase by Cem Yuksel // [www.cemyuksel.com] //------------------------------------------------------------------------------- #ifndef _TIMER_LIST_H_INCLUDED_ #define _TIMER_LIST_H_INCLUDED_ //------------------------------------------------------------------------------- #include "cyTimer.h" #include #include //------------------------------------------------------------------------------- // ID of each timer and the number of timers enum TimerType { TT_PART1=0, TT_PART1_SUB1, TT_PART1_SUB2, TT_PART1_SUB3, TT_PART2, TT_PART2_SUB1, TT_PART2_SUB2, TIMER_TYPE_COUNT // this keeps the number of timers (DO NOT REMOVE) }; // The name string of each timer static char TimerTypeNames[][255] = { "Part 1 ", " Part 1 algorithm 1 ", " Part 1 algorithm 2 ", " Part 1 algorithm 3 ", "Part 2 ", " Part 2 algorithm 1 ", " Part 2 algorithm 2 ", }; //------------------------------------------------------------------------------- class TimerList { public: // Clears the data of all timers void ClearAll() { Clear( 0, TIMER_TYPE_COUNT ); } // Clears the data of the timers between from and to void Clear( int from, int to ) { for ( int i=from; i