Explorar el Código

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 hace 15 años
padre
commit
7e1e36530e
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 2
    1
      timing.cpp
  2. 1
    1
      timing.hpp

+ 2
- 1
timing.cpp Ver fichero

@@ -92,7 +92,8 @@ int Sleeper::setMillisecondsToSleep(int x) {
if(x < MinimumSleeperTime ||
x > MaximumSleeperTime) // If it's not a good time value
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.

+ 1
- 1
timing.hpp Ver fichero

@@ -206,9 +206,9 @@ class Timer {

private:

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

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


Cargando…
Cancelar
Guardar