summaryrefslogtreecommitdiff
path: root/kernel/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/shell.c')
-rw-r--r--kernel/shell.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/shell.c b/kernel/shell.c
index 0dd9dc0..0925445 100644
--- a/kernel/shell.c
+++ b/kernel/shell.c
@@ -1,4 +1,5 @@
#include "interrupts.h"
+#include "time.h"
#include "lib/logger/log.h" // logger facilities
#include "lib/bool/bool.h"
#include "lib/int/stdint.h"
@@ -51,7 +52,8 @@ void shell_execute()
if(1==strcmp(command,"TIME",0))
{
- log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"%d seconds passed since system start.",timer16);
+ uint32_t time=task_system_clock;
+ log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"%d seconds passed since system start.",(time/25));
}
else if(1==strcmp(command,"EIGHT",0))
{