[Positioner] Timestamp::elapsed(): use current time
Timestamp::elapsed() now calls Timestamp::get_current_time() instead of comparing to now().
This commit is contained in:
parent
69461e5c94
commit
451e665eda
|
@ -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()) ;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue