I need to measure an elapsed time (or some sort of timestamp – doesn’t matter if it’s the system time or something that started from 0) in milliseconds, and was interested in using the boost::cpu_timer class to do this.
Is it un-wise to use this class for an extended period of time (i.e. a week straight of non-stop measuring)? Is there an alternative solution?
From my experience with getting the system timestamp, I’ve gradually come to the assumption that obtaining the timestamp in milliseconds (which is what I need) every couple of milliseconds is incredibly slow and strenuous.
I think boost::chrono or std::chrono better solve this problem