summaryrefslogtreecommitdiff
path: root/include/arch/esp8266/driver/uptime.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/esp8266/driver/uptime.h')
-rw-r--r--include/arch/esp8266/driver/uptime.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/arch/esp8266/driver/uptime.h b/include/arch/esp8266/driver/uptime.h
index 21740c9..44dde43 100644
--- a/include/arch/esp8266/driver/uptime.h
+++ b/include/arch/esp8266/driver/uptime.h
@@ -14,6 +14,7 @@ class Uptime {
public:
Uptime () {}
inline uint32_t get_us() { return system_get_time(); }
+ inline uint32_t get_s() { return system_get_time() / 1000000; }
inline uint32_t get_cycles()
{