From d99a6874f5397955e1d6cb3098ab274d0836109f Mon Sep 17 00:00:00 2001 From: Matthias Weisser Date: Tue, 29 Nov 2011 12:16:40 +0100 Subject: sandbox: Add timer simulation Making sleep command work Signed-off-by: Matthias Weisser Signed-off-by: Mike Frysinger --- board/sandbox/sandbox/sandbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'board') diff --git a/board/sandbox/sandbox/sandbox.c b/board/sandbox/sandbox/sandbox.c index 95a5045..f376c74 100644 --- a/board/sandbox/sandbox/sandbox.c +++ b/board/sandbox/sandbox/sandbox.c @@ -21,6 +21,8 @@ #include +#include + /* * Pointer to initial global data area * @@ -34,7 +36,7 @@ void flush_cache(unsigned long start, unsigned long size) ulong get_timer(ulong base) { - return 0; + return (os_get_nsec() / 1000000) - base; } int timer_init(void) -- cgit v1.1