Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

TimerTest Class Reference

Inheritance diagram for TimerTest::

TimerSignal TimerSignal List of all members.

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

Constructor & Destructor Documentation

TimerTest::TimerTest ULONG    clk = 200000000 [inline]
 

Definition at line 16 of file TimerTest.cpp.

00017   : Timer( clk ), loop( 0 ), avg( 0 ) { }

TimerTest::TimerTest ULONG    clk [inline]
 

Definition at line 13 of file TimerTest.cpp.

00014   : Timer( clk ), loop( 0 ), avg( 0 ) { }


Member Function Documentation

virtual void TimerTest::start   [inline, virtual]
 

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  }

virtual void TimerTest::tick int    signo [inline, virtual]
 

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  }

virtual void TimerTest::timedRun int    signo [inline, virtual]
 

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  }


Member Data Documentation

size_t TimerTest::avg
 

Definition at line 32 of file TimerTest.cpp.

size_t TimerTest::loop
 

Definition at line 31 of file TimerTest.cpp.

Referenced by main().


The documentation for this class was generated from the following files:
Generated on Sun Oct 14 18:50:18 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001