Inheritance diagram for TimerTest::
Public Methods | |
TimerTest (ULONG clk=200000000) | |
virtual void | tick (int signo) |
virtual void | start () |
TimerTest (ULONG clk) | |
virtual void | timedRun (int signo) |
Public Attributes | |
size_t | loop |
size_t | avg |
|
Definition at line 16 of file TimerTest.cpp. |
|
Definition at line 13 of file TimerTest.cpp. |
|
Reimplemented from TimerSignal. Definition at line 35 of file TimerTest.cpp. Referenced by main().
00036 { 00037 printf( "Timer started.\n" ); 00038 fflush( stdout ); 00039 00040 Timer::start(); 00041 } |
|
Reimplemented from TimerSignal. Definition at line 19 of file TimerTest.cpp. 00020 { 00021 if (avg < 1 ) { 00022 avg = loop; 00023 } else { 00024 avg = ( avg + loop ) / 2; 00025 } 00026 00027 printf( "Enter handler with signal %d/%d [%d/%d].\n", 00028 signo, TimerSignalEvent, loop, avg ); 00029 00030 loop = 0; 00031 printf( "End signal handler.\n" ); 00032 fflush( stdout ); 00033 } |
|
Definition at line 16 of file TimerTest.cpp. 00017 { 00018 if (avg < 1 ) { 00019 avg = loop; 00020 } else { 00021 avg = ( avg + loop ) / 2; 00022 } 00023 00024 printf( "Enter handler with signal %d/%d [%d/%d].\n", \ 00025 signo, TimerSignal, loop, avg ); 00026 00027 loop = 0; 00028 printf( "End signal handler.\n" ); 00029 } |
|
Definition at line 32 of file TimerTest.cpp. |
|
Definition at line 31 of file TimerTest.cpp. Referenced by main().
|