Page 1 of 1

Implentation of gettimeofday

Posted: Tue Dec 04, 2018 12:09 pm
by Zingemneire
Hi,

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

Re: Implentation of gettimeofday

Posted: Tue Dec 04, 2018 2:46 pm
by ESP_igrr
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