Implentation of gettimeofday

Zingemneire
Posts: 68
Joined: Tue Apr 17, 2018 7:35 am

Implentation of gettimeofday

Postby Zingemneire » Tue Dec 04, 2018 12:09 pm

Hi,

Can anyone point me to the actual implementation/source code of gettimeofday ? Until now I have failed to locate it.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Implentation of gettimeofday

Postby ESP_igrr » Tue Dec 04, 2018 2:46 pm

gettimeofday is a thin wrapper is provided by newlib:
https://github.com/espressif/newlib-esp ... ysgettod.c

it calls _gettimeofday_r which is in IDF:
https://github.com/espressif/esp-idf/bl ... ime.c#L293

Who is online

Users browsing this forum: Bing [Bot] and 104 guests