HikoGUI
Select Version: ⚠️ This documents the main development branch of HikoGUI. It might differ from release versions.
A low latency retained GUI
|
#include <hikogui/time/time_stamp_utc.hpp>
Static Public Member Functions | |
static utc_nanoseconds | now (time_stamp_count &tsc) |
Get the current time and TSC value. | |
static utc_nanoseconds | make (time_stamp_count const &tsc) noexcept |
Make a time point from a time stamp count. | |
static bool | start_subsystem () noexcept |
This will start the calibration subsystem. | |
static void | stop_subsystem () noexcept |
This will stop the calibration subsystem. | |
static void | adjust_for_drift () noexcept |
A calibration step which will drift the per-cpu tsc-offset. | |
Timestamp.
|
staticnoexcept |
A calibration step which will drift the per-cpu tsc-offset.
This is a fast wait-free function that may be called from any thread. It is useful to call this from the render thread which means small adjustments to the calibrations are made at 60 fps.
|
inlinestaticnoexcept |
Make a time point from a time stamp count.
This function will work in two modes:
|
inlinestatic |
Get the current time and TSC value.
set_thread_affinity()
to set the CPU affinity to a single CPU.
|
inlinestaticnoexcept |
This will start the calibration subsystem.
|
inlinestaticnoexcept |
This will stop the calibration subsystem.