1
0
Fork 0
mirror of https://github.com/CovidBraceletPrj/CovidBracelet.git synced 2025-07-04 20:36:52 +02:00

Add time_get_unix_seconds utility

This commit is contained in:
Patrick Rathje 2022-05-25 20:47:32 +02:00
parent 6f2da044fe
commit d542b39493
3 changed files with 20 additions and 3 deletions

6
src/util.c Normal file
View file

@ -0,0 +1,6 @@
#include "time.h"
#include <zephyr.h>
// TODO: this is very basic atm
uint32_t time_get_unix_seconds() {
return k_uptime_get() / 1000;
}