From e064a9578b36fa475ddd08f318967409ef9cf1fd Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 28 Oct 2014 17:21:07 -0600 Subject: [PATCH] Remove times() function because it doesn't exist on NuttX Signed-off-by: Alan Carvalho de Assis --- interpreters/bas/global.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/interpreters/bas/global.c b/interpreters/bas/global.c index 1b737332e..32d4b0b2e 100644 --- a/interpreters/bas/global.c +++ b/interpreters/bas/global.c @@ -3,7 +3,6 @@ #include #include "config.h" -#include #include #include #include @@ -1345,9 +1344,9 @@ static struct Value *fn_tan(struct Value *v, struct Auto *stack) /*{{{*/ static struct Value *fn_timei(struct Value *v, struct Auto *stack) /*{{{*/ { #ifdef CONFIG_INTERPRETER_BAS_HAVE_SYSCFG - return Value_new_INTEGER(v,(unsigned long)(times((struct tms*)0)/(sysconf(_SC_CLK_TCK)/100.0))); + return Value_new_INTEGER(v,(unsigned long)(clock_systimer()/(sysconf(_SC_CLK_TCK)/100.0))); #else - return Value_new_INTEGER(v,(unsigned long)(times((struct tms*)0)/(CLK_TCK/100.0))); + return Value_new_INTEGER(v,(unsigned long)(clock_systimer()/(CLK_TCK/100.0))); #endif } /*}}}*/