diff options
| author | Manolo Gouy <Manolo> | 2017-03-07 16:58:13 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-03-07 16:58:13 +0000 |
| commit | c37744cde9ff9a4e9e476a9a4acebfee87650f29 (patch) | |
| tree | 69d6c215ddd231e4350371d810de04422ee16b32 /FL | |
| parent | 3c375f39775cc450e05437d09543f179ff4ccc93 (diff) | |
Add to Fl_System_Driver support for measuring time with split second resolution.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12187 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_System_Driver.H | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 706a4ccbb..8a67ead8e 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -4,7 +4,7 @@ // A base class for platform specific system calls // for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2016 by Bill Spitzak and others. +// Copyright 2010-2017 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -32,6 +32,7 @@ #include <stdlib.h> #include <stdarg.h> #include <string.h> +#include <time.h> class Fl_File_Icon; class Fl_File_Browser; @@ -210,6 +211,8 @@ public: virtual void remove_fd(int); // the default implementation of open_callback() may be enough virtual void open_callback(void (*)(const char *)); + // get elapsed time since Jan 1st, 1970 + virtual void gettime(time_t *sec, int *usec) {} }; #endif // FL_SYSTEM_DRIVER_H |
