altos: add ao_time_ns API
[fw/altos] / src / kernel / ao.h
index c00de1fe064644e3189bfd8b024865477676f26e..dddcd9cb5afd6d8a4079d96eacac2842933b466a 100644 (file)
@@ -117,6 +117,10 @@ extern volatile AO_TICK_TYPE ao_tick_count;
 AO_TICK_TYPE
 ao_time(void);
 
+/* Returns the current time in ns */
+uint64_t
+ao_time_ns(void);
+
 /* Suspend the current task until ticks time has passed */
 void
 ao_delay(uint16_t ticks);