Inheritance diagram for TimerPulseTest::

Public Methods | |
| TimerPulseTest (ULONG clk=200000000) | |
| virtual void | tick (int signo) |
| virtual void | start () |
Public Attributes | |
| size_t | loop |
| size_t | avg |
|
|
Definition at line 12 of file TimerPulseTest.cpp. 00013 : TimerPulse( clk ), loop( 0 ), avg( 0 ) { } |
|
|
Definition at line 31 of file TimerPulseTest.cpp. Referenced by main().
00032 {
00033 printf( "Timer started.\n" );
00034 fflush( stdout );
00035
00036 TimerPulse::start();
00037 }
|
|
|
Reimplemented from TimerPulse. Definition at line 15 of file TimerPulseTest.cpp. 00016 {
00017 if (avg < 1 ) {
00018 avg = loop;
00019 } else {
00020 avg = ( avg + loop ) / 2;
00021 }
00022
00023 printf( "Enter handler with signal %d/%d [%d/%d].\n", \
00024 signo, TimerSignalEvent, loop, avg );
00025
00026 loop = 0;
00027 printf( "End signal handler.\n" );
00028 fflush( stdout );
00029 }
|
|
|
Definition at line 40 of file TimerPulseTest.cpp. |
|
|
Definition at line 39 of file TimerPulseTest.cpp. Referenced by main().
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001