瀏覽代碼

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 年之前
父節點
當前提交
7e1e36530e
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. 2
    1
      timing.cpp
  2. 1
    1
      timing.hpp

+ 2
- 1
timing.cpp 查看文件

@@ -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 查看文件

@@ -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.


Loading…
取消
儲存