I wrote this class today, but I am trying to figure out how to make it more accurate. I pass in seconds and multiply by 1000 to make it milliseconds, and the time does not line up. I need the ability to have multiple timers, so using timer_gettime()timer_gettime()
, which limits one clock per process, is not an option. Also note I borrowed my idea from free glut.