The user_interface.h declares "uint32 system_get_time(void)".
Does the function return time in seconds? Related to which time?
Is a reverse function (system_set_time) available?
Is a global "ticks since (re)start" variable available?
Q: time related functions
Re: Q: time related functions
Postby costaud » Fri Nov 14, 2014 12:43 am
Strolch wrote:The user_interface.h declares "uint32 system_get_time(void)".
Does the function return time in seconds? Related to which time?
Is a reverse function (system_set_time) available?
Is a global "ticks since (re)start" variable available?
Hey Strolch, this func returns a time counted in microsecond.It is read from a loop counter and is related to the time the chip is powered on. Usually,it is used to get an time interval and will re-count when the chip is reset.
-
- Posts: 3
- Joined: Sat Oct 25, 2014 2:06 pm
Re: Q: time related functions
Postby nicoverduin » Fri Nov 14, 2014 1:17 am
a bit like millis() on the arduino?
Re: Q: time related functions
Postby Strolch » Fri Nov 14, 2014 2:58 am
Thanks, costaud.
So I guess I have to manage my own time/date ('cause the os doesn't have one)?
F.e. query NTP on startup and maintain an own timer counting the sec/millisec for time/date...
So I guess I have to manage my own time/date ('cause the os doesn't have one)?
F.e. query NTP on startup and maintain an own timer counting the sec/millisec for time/date...
Who is online
Users browsing this forum: Baidu [Spider] and 16 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.