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:
parent
6f2da044fe
commit
d542b39493
3 changed files with 20 additions and 3 deletions
6
src/util.c
Normal file
6
src/util.c
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue