ESP8266 Developer Zone The Official ESP8266 Forum 2014-11-14T02:58:09+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=42 2014-11-14T02:58:09+08:00 2014-11-14T02:58:09+08:00 https://bbs.espressif.com:443/viewtopic.php?t=42&p=151#p151 <![CDATA[Re: Q: time related functions]]> 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...

Statistics: Posted by Strolch — Fri Nov 14, 2014 2:58 am


]]>
2014-11-14T01:17:07+08:00 2014-11-14T01:17:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=42&p=147#p147 <![CDATA[Re: Q: time related functions]]> Statistics: Posted by nicoverduin — Fri Nov 14, 2014 1:17 am


]]>
2014-11-14T00:43:35+08:00 2014-11-14T00:43:35+08:00 https://bbs.espressif.com:443/viewtopic.php?t=42&p=146#p146 <![CDATA[Re: Q: time related functions]]>
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.

Statistics: Posted by costaud — Fri Nov 14, 2014 12:43 am


]]>
2014-11-14T00:17:11+08:00 2014-11-14T00:17:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=42&p=144#p144 <![CDATA[Q: time related functions]]> 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?

Statistics: Posted by Strolch — Fri Nov 14, 2014 12:17 am


]]>