X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Ftimex%2FMicroMeter.hpp;h=dcbed197fa98c908d05143ee6751308614969f68;hp=95f03beabe337d521aaec94714f181243adc734b;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/timex/MicroMeter.hpp b/include/anna/timex/MicroMeter.hpp index 95f03be..dcbed19 100644 --- a/include/anna/timex/MicroMeter.hpp +++ b/include/anna/timex/MicroMeter.hpp @@ -59,7 +59,7 @@ public: * \warning Elimina el punto de referencia temporal que puediera haberse establecido con #setTopReference. * \return El número de milisegundos transcurridos desde la última vez que inicializamos la cuenta de temporizacion. */ - Microsecond setControlPoint() throw() { + Microsecond setControlPoint() { Microsecond now = functions::microsecond(); Microsecond result = (now > a_timestamp) ? (now - a_timestamp) : (Microsecond)0; a_timestamp = now; @@ -79,12 +79,12 @@ public: * la marca de tiempo) y el núcleo y demás partes pueden tener conocimiento de que * esa tarea ha sido finalidad. */ - void setTopReference(const Microsecond & topReference) throw() { a_topReference = topReference; } + void setTopReference(const Microsecond & topReference) { a_topReference = topReference; } /** * Elimina el punto de referencia temporal. */ - void clearTopReference() throw() { a_topReference = (Microsecond)0; } + void clearTopReference() { a_topReference = (Microsecond)0; } /** * Devuelve el número de milisegundos transcurridos desde la última vez que inicializamos la cuenta de temporización. @@ -94,7 +94,7 @@ public: * \return El número de milisegundos transcurridos desde la última vez que inicializamos la cuenta de temporizacion. * \warning Si detecta algun fallo devolvera 0. */ - Microsecond getDelay() const throw() { + Microsecond getDelay() const { Microsecond now = (a_topReference == 0) ? functions::microsecond() : a_topReference; return (now > a_timestamp) ? (now - a_timestamp) : (Microsecond)0; } @@ -105,13 +105,13 @@ public: * \warning Elimina el punto de referencia temporal que puediera haberse establecido con #setTopReference. * \see anna::functions::microsecond. */ - MicroMeter& operator= (const Microsecond & timestamp) throw() { a_timestamp = timestamp; a_topReference = (Microsecond)0; return *this; } + MicroMeter& operator= (const Microsecond & timestamp) { a_timestamp = timestamp; a_topReference = (Microsecond)0; return *this; } /** * Operador copia. * \param other Instancia de la que copiar. */ - MicroMeter& operator= (const MicroMeter& other) throw() { a_timestamp = other.a_timestamp; a_topReference = other.a_topReference; return *this; } + MicroMeter& operator= (const MicroMeter& other) { a_timestamp = other.a_timestamp; a_topReference = other.a_topReference; return *this; } private: Microsecond a_topReference;