[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 Timestamp::elapsed() const
|
||||||
{
|
{
|
||||||
Timestamp now ;
|
return elapsed(get_current_time()) ;
|
||||||
if (! now.now())
|
|
||||||
return Timestamp() ;
|
|
||||||
|
|
||||||
return elapsed(now) ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue