Add built-in VGA font
[jpcrr.git] / streamtools / timecounter.hpp
blob10ed06517d7740eae5879d647a947c5e14c34c43
1 #ifndef _timecounter__hpp__included__
2 #define _timecounter__hpp__included__
4 #include <stdint.h>
5 #include <string>
7 class timecounter
9 public:
10 timecounter(const std::string& spec);
11 timecounter(uint32_t spec);
12 timecounter(uint32_t n, uint32_t d);
13 operator uint64_t();
14 timecounter& operator++();
15 timecounter operator++(int);
16 private:
17 uint64_t current_w;
18 uint64_t current_n;
19 uint64_t step_w;
20 uint64_t step_n;
21 uint64_t step_d;
24 #endif