Add functions to get current timestamp
This commit is contained in:
parent
976cea11de
commit
f567646b68
2 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,11 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
|
||||
gmrf_time_t gmrf_now(gmrf_t *gmrf) {
|
||||
return gmrf->mmss->now;
|
||||
}
|
||||
|
||||
|
||||
static void init_nodes(gmrf_t *nodes) {
|
||||
gmrf_t *node;
|
||||
for (node = nodes; node; node = node->next) {
|
||||
|
|
Reference in a new issue