From 2209e3a27040dd21966d3e62ef56ed9a6b0c5cab Mon Sep 17 00:00:00 2001 From: VIFEX Date: Tue, 10 Dec 2024 17:54:17 +0800 Subject: [PATCH] docs(profiler): remove tick unit (#7433) Signed-off-by: pengyiqiang Co-authored-by: pengyiqiang --- docs/details/debugging/profiler.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/details/debugging/profiler.rst b/docs/details/debugging/profiler.rst index 1e91b6964..8370c573c 100644 --- a/docs/details/debugging/profiler.rst +++ b/docs/details/debugging/profiler.rst @@ -47,7 +47,7 @@ To enable the profiler, set :c:macro:`LV_USE_PROFILER` in ``lv_conf.h`` and conf #include #include - static uint64_t my_get_tick_us_cb(void) + static uint64_t my_get_tick_cb(void) { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); @@ -71,7 +71,7 @@ To enable the profiler, set :c:macro:`LV_USE_PROFILER` in ``lv_conf.h`` and conf lv_profiler_builtin_config_t config; lv_profiler_builtin_config_init(&config); config.tick_per_sec = 1000000000; /* One second is equal to 1000000000 nanoseconds */ - config.tick_get_cb = my_get_tick_us_cb; + config.tick_get_cb = my_get_tick_cb; config.tid_get_cb = my_get_tid_cb; config.cpu_get_cb = my_get_cpu_cb; lv_profiler_builtin_init(&config); @@ -81,7 +81,7 @@ To enable the profiler, set :c:macro:`LV_USE_PROFILER` in ``lv_conf.h`` and conf .. code-block:: c - static uint64_t my_get_tick_us_cb(void) + static uint64_t my_get_tick_cb(void) { /* Use the microsecond time stamp provided by Arduino */ return micros(); @@ -92,7 +92,7 @@ To enable the profiler, set :c:macro:`LV_USE_PROFILER` in ``lv_conf.h`` and conf lv_profiler_builtin_config_t config; lv_profiler_builtin_config_init(&config); config.tick_per_sec = 1000000; /* One second is equal to 1000000 microseconds */ - config.tick_get_cb = my_get_tick_us_cb; + config.tick_get_cb = my_get_tick_cb; lv_profiler_builtin_init(&config); }