* \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;
* 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.
* \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;
}
* \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;