Explorar el Código

Added CodeDweller namespace.


git-svn-id: https://svn.microneil.com/svn/CodeDweller/branches/adeniz_1@80 d34b734f-a00e-4b39-a726-e4eeb87269ab
adeniz_1
adeniz hace 9 años
padre
commit
729b6fe305
Se han modificado 2 ficheros con 7 adiciones y 1 borrados
  1. 4
    0
      timing.cpp
  2. 3
    1
      timing.hpp

+ 4
- 0
timing.cpp Ver fichero

@@ -37,6 +37,8 @@

using namespace std;

namespace CodeDweller {

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

}

+ 3
- 1
timing.hpp Ver fichero

@@ -56,7 +56,7 @@

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

using namespace std;
namespace CodeDweller {

///////////////////////////////////////////////////////////////////////////////
// class Sleeper - An object that remembers how long it is supposed to sleep.
@@ -357,4 +357,6 @@ class Timeout {
** Returns true if time is up.
*/

} // namespace CodeDweller

#endif // End MNR_timing once-only switch.

Cargando…
Cancelar
Guardar