Commit 6994ccf8 authored by Mike Frysinger's avatar Mike Frysinger
Browse files

sandbox: add get_{tbclk,ticks}

Fixes building after recent readline updates with timeouts.
Signed-off-by: default avatarMike Frysinger <>
parent eef448e1
......@@ -34,6 +34,16 @@ void flush_cache(unsigned long start, unsigned long size)
ulong get_tbclk(void)
unsigned long long get_ticks(void)
return get_timer(0);
ulong get_timer(ulong base)
return (os_get_nsec() / 1000000) - base;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment