Files
qt5-legatus-legacy/Lts/Common/LtsUtils/LtsUtilsCore/outdated_position.h
T
2026-08-13 18:33:10 +02:00

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;
}
}