Browse Source

Minor tweaks in timing.* to eliminate compiler warnings.

git-svn-id: https://svn.microneil.com/svn/CodeDweller/trunk@5 d34b734f-a00e-4b39-a726-e4eeb87269ab
wx
madscientist 15 years ago
parent
commit
7e1e36530e
2 changed files with 3 additions and 2 deletions
  1. 2
    1
      timing.cpp
  2. 1
    1
      timing.hpp

+ 2
- 1
timing.cpp View File

if(x < MinimumSleeperTime || if(x < MinimumSleeperTime ||
x > MaximumSleeperTime) // If it's not a good time value x > MaximumSleeperTime) // If it's not a good time value
throw BadSleeperValue(); // then throw the exception. throw BadSleeperValue(); // then throw the exception.
MillisecondsToSleep = x; // If it is good - set it.
MillisecondsToSleep = x; // If it is good - set it.
return MillisecondsToSleep; // Return the set value.
} }


int Sleeper::getMillisecondsToSleep() { // Safe way to get the value. int Sleeper::getMillisecondsToSleep() { // Safe way to get the value.

+ 1
- 1
timing.hpp View File



private: private:


bool RunningFlag; // True if clock is running.
msclock StartTime; // TimeOfDay at start. msclock StartTime; // TimeOfDay at start.
msclock StopTime; // TimeOfDay at stop or check. msclock StopTime; // TimeOfDay at stop or check.
bool RunningFlag; // True if clock is running.


msclock getLocalRawClock() const; // Derives unix epoch ms from local clock. msclock getLocalRawClock() const; // Derives unix epoch ms from local clock.



Loading…
Cancel
Save