aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/include/sys/timer.h b/sys/include/sys/timer.h
index a255bab..e33b2d3 100644
--- a/sys/include/sys/timer.h
+++ b/sys/include/sys/timer.h
@@ -72,6 +72,8 @@ typedef int tmrr_status_t;
struct timer {
const char *name; /* e.g "HPET" */
size_t(*calibrate)(void); /* Returns frequency, 0 for unspecified */
+ size_t(*get_time_usec)(void); /* Time since init (microseconds) */
+ size_t(*get_time_sec)(void); /* Time since init (seconds) */
int(*msleep)(size_t ms);
int(*usleep)(size_t us);
int(*nsleep)(size_t ns);