first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef __timer_h__
|
||||
#define __timer_h__
|
||||
|
||||
|
||||
class CTimer
|
||||
{
|
||||
public:
|
||||
CTimer( );
|
||||
|
||||
void init();
|
||||
bool timeout( unsigned long t );
|
||||
void wake( unsigned long );
|
||||
unsigned long elapsed( );
|
||||
|
||||
private:
|
||||
unsigned long prev;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user