Search found 1 match

by vanvan
Mon Sep 12, 2022 11:44 pm
Forum: Sample Code
Topic: Im trying to print the real time delay results of vTaskDelay .... is this code and the results ok?
Replies: 1
Views: 3715

Im trying to print the real time delay results of vTaskDelay .... is this code and the results ok?

#include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" void app_main(void) { float mesurment; int first_time; int second_time; for (int i = 10; i < 150; i+=10) { printf("\n===========\ntime accuracy for %d miliseconds delay\n",i); first_time=esp_timer_get_time(); vTaskDelay(i/...