From ffadc23cab725828a3a38646d3efa10bd551f7b2 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 9 Feb 2023 14:48:39 +0100 Subject: Expose elapsed time API (#670) --- FL/Fl.H | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'FL/Fl.H') 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(); -- cgit v1.2.3