- MillisecondTime(unsigned int sec, unsigned int usec)
- : m_sec(sec), m_usec(usec)
- {
- }
- MillisecondTime()
- {
- }
- staticMillisecondTime current();
-
- unsigned int milliseconds_since(const MillisecondTime& other) const
- {
- return static_cast<unsigned int>((m_sec * static_cast<double>(usec_per_sec) + m_usec)
- - (other.m_sec * static_cast<double>(usec_per_sec) + other.m_usec)) / 1000;
- }
+MillisecondTime( unsigned int sec, unsigned int usec )
+ : m_sec( sec ), m_usec( usec ){
+}
+MillisecondTime(){
+}
+staticMillisecondTime current();
+
+unsigned int milliseconds_since( const MillisecondTime& other ) const {
+ return static_cast<unsigned int>( ( m_sec * static_cast<double>( usec_per_sec ) + m_usec )
+ - ( other.m_sec * static_cast<double>( usec_per_sec ) + other.m_usec ) ) / 1000;
+}