QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
GPSClock.h
Go to the documentation of this file.
1#pragma once
2
3#include <chrono>
4#include <cstdint>
5#include <functional>
6
7#include "MonotonicClock.h"
8
11{
12 std::function<uint64_t()> nowUs = MonotonicClock::nowUs;
14 std::function<bool(std::chrono::microseconds)> wait{};
15};
uint64_t nowUs()
The monotonic clock receiver sessions run on: the steady clock unless tests inject a virtual one.
Definition GPSClock.h:11
std::function< bool(std::chrono::microseconds)> wait
Waits duration on this clock; false when the wait was cancelled. Empty means a real wait.
Definition GPSClock.h:14
std::function< uint64_t()> nowUs
Definition GPSClock.h:12