You've already forked CM4Stack_lvgl
mirror of
https://github.com/m5stack/CM4Stack_lvgl.git
synced 2026-05-20 10:51:21 -07:00
19 lines
295 B
C
19 lines
295 B
C
/**
|
|
* @file tick.c
|
|
* @author Forairaaaaa
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2023-02-09
|
|
*
|
|
* @copyright Copyright (c) 2023
|
|
*
|
|
*/
|
|
#include "tick.h"
|
|
|
|
int64_t lvgl_get_tick()
|
|
{
|
|
struct timeval tv;
|
|
gettimeofday(&tv, NULL);
|
|
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
|
|
}
|