diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-28 17:21:07 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-28 17:21:07 -0600 |
commit | 616a6a6ad0c16cd79a6c398a8b71dcc6a5f75cf0 (patch) | |
tree | ee807714ae81b111561dd298d1f7d6693ee1a53a /apps | |
parent | bffba9c56e307391a7e846d76d7de6f1a80d42fd (diff) | |
download | nuttx-616a6a6ad0c16cd79a6c398a8b71dcc6a5f75cf0.tar.gz nuttx-616a6a6ad0c16cd79a6c398a8b71dcc6a5f75cf0.tar.bz2 nuttx-616a6a6ad0c16cd79a6c398a8b71dcc6a5f75cf0.zip |
Remove times() function because it doesn't exist on NuttX
Signed-off-by: Alan Carvalho de Assis <acassis@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/interpreters/bas/global.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/interpreters/bas/global.c b/apps/interpreters/bas/global.c index 1b737332e..32d4b0b2e 100644 --- a/apps/interpreters/bas/global.c +++ b/apps/interpreters/bas/global.c @@ -3,7 +3,6 @@ #include <nuttx/config.h> #include "config.h" -#include <sys/times.h> #include <assert.h> #include <ctype.h> #include <dirent.h> @@ -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 } /*}}}*/ |