mirror of https://github.com/ARMmbed/mbed-os.git
Previously we used `gettimeofday()` for Mbed TLS timing, but its implementation provided by Mbed OS is only precise to seconds. The microsecond component of the output `struct timeval` is always set to zero. But Mbed TLS requires millisecond precision. To provide required timing precision, switch to use `LowPowerTicker` or (microsecond) `Ticker`. `LowPowerTicker` is preferred as it saves power and Mbed TLS does not require microsecond precision. |
||
|---|---|---|
| .. | ||
| platform_alt.h | ||
| platform_mbed.h | ||
| shared_rng.h | ||
| timing_alt.h | ||