[Positioner] Timestamp::elapsed(): use current time

Timestamp::elapsed() now calls Timestamp::get_current_time() instead of
comparing to now().
This commit is contained in:
Matteo Cypriani 2012-06-08 13:02:30 +02:00
parent 69461e5c94
commit 451e665eda
1 changed files with 1 additions and 5 deletions

View File

@ -126,11 +126,7 @@ bool Timestamp::now()
*/
Timestamp Timestamp::elapsed() const
{
Timestamp now ;
if (! now.now())
return Timestamp() ;
return elapsed(now) ;
return elapsed(get_current_time()) ;
}