From fed4a58102225317ae073d5151dcc19a73dc5a13 Mon Sep 17 00:00:00 2001 From: nvt-se Date: Fri, 4 Sep 2009 13:57:17 +0000 Subject: [PATCH] return the amount of seconds elapsed in clock_seconds() --- platform/cooja/sys/clock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/cooja/sys/clock.c b/platform/cooja/sys/clock.c index d47c8a8bd..00ca231e1 100644 --- a/platform/cooja/sys/clock.c +++ b/platform/cooja/sys/clock.c @@ -26,9 +26,10 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: clock.c,v 1.2 2009/03/26 16:22:37 fros4943 Exp $ + * $Id: clock.c,v 1.3 2009/09/04 13:57:17 nvt-se Exp $ */ +#include "contiki-conf.h" #include "sys/clock.h" #include "lib/simEnvChange.h" @@ -52,7 +53,7 @@ clock_time(void) unsigned long clock_seconds(void) { - return 0; + return simCurrentTime / CLOCK_CONF_SECONDS; } /*-----------------------------------------------------------------------------------*/ void