浏览代码

Added CodeDweller namespace.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@80 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz 10 年前
父节点
当前提交
729b6fe305
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 4
    0
      timing.cpp
  2. 3
    1
      timing.hpp

+ 4
- 0
timing.cpp 查看文件



using namespace std; using namespace std;


namespace CodeDweller {

/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// class Sleeper - An object that remembers how long it is supposed to sleep. // class Sleeper - An object that remembers how long it is supposed to sleep.
// This allows an application to create "standard" sleep timers. This also // This allows an application to create "standard" sleep timers. This also
bool Timeout::isExpired() { // Return true if time is up. bool Timeout::isExpired() { // Return true if time is up.
return (!(myTimer.getElapsedTime() < myDuration)); // Check the elapsed time against myDuration. return (!(myTimer.getElapsedTime() < myDuration)); // Check the elapsed time against myDuration.
} }

}

+ 3
- 1
timing.hpp 查看文件



// Introduce the standard namespace /////////////////////////////////////////// // Introduce the standard namespace ///////////////////////////////////////////


using namespace std;
namespace CodeDweller {


/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// class Sleeper - An object that remembers how long it is supposed to sleep. // class Sleeper - An object that remembers how long it is supposed to sleep.
** Returns true if time is up. ** Returns true if time is up.
*/ */


} // namespace CodeDweller

#endif // End MNR_timing once-only switch. #endif // End MNR_timing once-only switch.

正在加载...
取消
保存