summaryrefslogtreecommitdiff
path: root/FL/Fl.H
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-02-09 14:48:39 +0100
committerGitHub <noreply@github.com>2023-02-09 14:48:39 +0100
commitffadc23cab725828a3a38646d3efa10bd551f7b2 (patch)
tree404e9a3326bfde284960e16a0e8fd63f320c6c64 /FL/Fl.H
parent880fc26857d068789119ac79acf58b57c7d94b9e (diff)
Expose elapsed time API (#670)
Diffstat (limited to 'FL/Fl.H')
-rw-r--r--FL/Fl.H7
1 files changed, 7 insertions, 0 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index d33ff393c..925daa591 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -470,6 +470,13 @@ public:
static void add_check(Fl_Timeout_Handler, void* = 0);
static int has_check(Fl_Timeout_Handler, void* = 0);
static void remove_check(Fl_Timeout_Handler, void* = 0);
+
+ static Fl_Timestamp now();
+ static double seconds_since(Fl_Timestamp& then);
+ static double seconds_between(Fl_Timestamp& back, Fl_Timestamp& further_back);
+ static long ticks_since(Fl_Timestamp& then);
+ static long ticks_between(Fl_Timestamp& back, Fl_Timestamp& further_back);
+
// private
static void run_idle();
static void run_checks();