00001
00002
00003
00004
00005
00006
00007
00008 #ifndef __timer_h
00009 #define __timer_h
00010
00011 #include <system/config.h>
00012 #include <tsc.h>
00013
00014 __BEGIN_SYS
00015
00016 class Timer_Common
00017 {
00018 protected:
00019 Timer_Common() {}
00020
00021 public:
00022 typedef TSC::Hertz Tick;
00023
00024 protected:
00025 typedef TSC::Hertz Hertz;
00026
00027 protected:
00028 const Hertz & frequency() { return _frequency; }
00029 void frequency(const Hertz & f) { _frequency = f; }
00030
00031 private:
00032 static Hertz _frequency;
00033 };
00034
00035 __END_SYS
00036
00037 #include __HEADER_MACH(timer)
00038
00039 #endif