21 lines
396 B
C++
Executable File
21 lines
396 B
C++
Executable File
/**
|
|
* Helper function to check if a position is outdated or not
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Ehrlicher, SLSE, 2016-05-03
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <qglobal.h>
|
|
|
|
namespace LtsUtils
|
|
{
|
|
inline bool isPositionTimeOutdated(qint64 curTime, qint64 posTime)
|
|
{
|
|
// 10min in trainging area, so a little bit more in excon
|
|
return curTime > posTime + 11 * 60 * 1000;
|
|
}
|
|
}
|