#include <chrono>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
Go to the source code of this file.
◆ delay
Initial value:= [](const auto duration)
{
}
auto timeout
Definition: delay.h:18
◆ timeout
Initial value:= [](
const auto duration,
const TickType_t time_base = portTICK_RATE_MS
) -> TickType_t
{
return (
std::chrono::milliseconds(duration).count()
/ time_base
);
}