diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-03 15:26:19 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-03 15:26:19 +0200 |
| commit | e5e674724ec527c45efaa1622d0e9a1618757ca3 (patch) | |
| tree | d7bd7a4d6c9b155b6828171b0a80be5b5bac79cd /kernel/shell.c | |
| parent | fcfa7a7537ed76a63896ec5a9aa39cfc989d761c (diff) | |
system clock
Diffstat (limited to 'kernel/shell.c')
| -rw-r--r-- | kernel/shell.c | 4 |
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)) { |
