Fix elapsed_ms INVALIDATE

pull/281/head
Michael Black W9MDB 2020-05-16 21:32:34 +02:00
rodzic 906a369e00
commit 8e2eba0a6d
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1254,7 +1254,7 @@ void HAMLIB_API rig_no_restore_ai()
}
//! @cond Doxygen_Suppress
int HAMLIB_API elapsed_ms(struct timespec *start, int option)
double HAMLIB_API elapsed_ms(struct timespec *start, int option)
{
// If option then we are starting the timing, else we get elapsed
struct timespec stop;
@ -1289,8 +1289,8 @@ int HAMLIB_API elapsed_ms(struct timespec *start, int option)
break;
case ELAPSED_INVALIDATE:
start->tv_sec -= 3600 * 24 *
365; // let's back off 1 year -- should expire most elapsed measurements
clock_gettime(CLOCK_REALTIME, start);
start->tv_sec -= 3600;
break;
}