Add functions to get current timestamp

This commit is contained in:
Matthias Schiffer 2013-03-18 22:02:28 +01:00
parent 976cea11de
commit f567646b68
2 changed files with 8 additions and 0 deletions

View file

@ -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) {