* \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.
*/
- Millisecond setControlPoint() throw() {
+ Millisecond setControlPoint() {
Millisecond now = functions::millisecond();
Millisecond result = (now > a_timestamp) ? (now - a_timestamp) : (Millisecond)0;
a_timestamp = now;
* esa tarea ha sido finalidad.
*
*/
- void setTopReference(const Millisecond & topReference) throw() { a_topReference = topReference; }
+ void setTopReference(const Millisecond & topReference) { a_topReference = topReference; }
/**
* Elimina el punto de referencia temporal.
*/
- void clearTopReference() throw() { a_topReference = 0; }
+ void clearTopReference() { a_topReference = 0; }
/**
* Devuelve el número de milisegundos transcurridos desde la última vez que inicializamos la cuenta de temporización.
* \return El número de milisegundos transcurridos desde la última vez que inicializamos la cuenta de temporizacion.
* \warning Si detecta algun fallo devolvera 0.
*/
- Millisecond getDelay() const throw() {
+ Millisecond getDelay() const {
Millisecond now = (a_topReference == 0) ? functions::millisecond() : a_topReference;
return (now > a_timestamp) ? (now - a_timestamp) : (Millisecond)0;
}
* \warning Elimina el punto de referencia temporal que puediera haberse establecido con #setTopReference.
* \see anna::functions::millisecond.
*/
- Meter& operator= (const Millisecond & timestamp) throw() { a_timestamp = timestamp; a_topReference = 0; return *this; }
+ Meter& operator= (const Millisecond & timestamp) { a_timestamp = timestamp; a_topReference = 0; return *this; }
/**
* Operador copia.
* \param other Instancia de la que copiar.
*/
- Meter& operator= (const Meter& other) throw() { a_timestamp = other.a_timestamp; a_topReference = other.a_topReference; return *this; }
+ Meter& operator= (const Meter& other) { a_timestamp = other.a_timestamp; a_topReference = other.a_topReference; return *this; }
private:
Millisecond a_topReference;