Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: Issue using time() from standard library

$
0
0

Hi Oliver,

According to this wiki:

"When not running under CCS, the program needs to find some other source from which it can discover time. In order to do that, a new implementation of time() must be provided. If the program is running under an operating system, that operating system should provide an implementation of time(); otherwise, the user must provide one."

Can you try writing your own implementation of the time() function and compiling that into your program?  This should work using a "linker override trick" - that is, if you ensure that the object file that defines your version of the time() function is linked in before the RTS library, then your time() should win.

Please see the above linked wiki for further details.

Steve


Viewing all articles
Browse latest Browse all 25965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>