Implement 2D graphic API (#87)
* Implement 2D graphic library based on LittlevGL * Add lvgl license file
This commit is contained in:
11
samples/gui/lvgl-native-ui-app/get_time.c
Normal file
11
samples/gui/lvgl-native-ui-app/get_time.c
Normal file
@ -0,0 +1,11 @@
|
||||
#include <sys/time.h>
|
||||
#include "system_header.h"
|
||||
|
||||
int time_get_ms()
|
||||
{
|
||||
static struct timeval tv;
|
||||
gettimeofday(&tv, NULL);
|
||||
long long time_in_mill = (tv.tv_sec) * 1000 + (tv.tv_usec) / 1000;
|
||||
|
||||
return (int) time_in_mill;
|
||||
}
|
||||
Reference in New Issue
Block a user