diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-06 16:23:08 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-10-06 16:23:08 +0200 |
| commit | 4d9805537bd8a34d2a9b920148710ff98cf83d6b (patch) | |
| tree | c56d8f0e56cb07db1b46af258c72f7e40223d392 /FL | |
| parent | ac047172b93e7125e48ca2b2286a906fc0296646 (diff) | |
Change prototype to Fl::now(double offset = 0)
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl.H | 3 | ||||
| -rw-r--r-- | FL/platform_types.h | 5 |
2 files changed, 4 insertions, 4 deletions
@@ -471,12 +471,11 @@ public: static int has_check(Fl_Timeout_Handler, void* = 0); static void remove_check(Fl_Timeout_Handler, void* = 0); - static Fl_Timestamp now(); + static Fl_Timestamp now(double delay = 0); 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); - static const Fl_Timestamp distant_past(); // private static void run_idle(); diff --git a/FL/platform_types.h b/FL/platform_types.h index 7c6b3a0b6..71c412abb 100644 --- a/FL/platform_types.h +++ b/FL/platform_types.h @@ -81,6 +81,7 @@ typedef opaque Fl_Timestamp; #define FL_PLATFORM_TYPES_H #include <FL/fl_config.h> +#include <time.h> // for time_t /* Platform-dependent types are defined here. These types must be defined by any platform: @@ -139,8 +140,8 @@ extern FL_EXPORT int fl_control_modifier(); // This is currently the same for all platforms, but may change in the future struct Fl_Timestamp_t { - long sec; - long usec; + time_t sec; + int usec; }; typedef struct Fl_Timestamp_t Fl_Timestamp; |
