[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH 15/22] cdi/misc: Implementiere cdi_elapsed_ms()



+ Implementiere die cdi/misc-Funktion cdi_elapsed_ms().

Signed-off-by: Max Reitz <max@xxxxxxxxxx>
---
 src/modules/cdi/lib/misc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/cdi/lib/misc.c b/src/modules/cdi/lib/misc.c
index 1b965af..2f34d87 100644
--- a/src/modules/cdi/lib/misc.c
+++ b/src/modules/cdi/lib/misc.c
@@ -183,3 +183,7 @@ void cdi_sleep_ms(uint32_t ms)
 }
 
 
+uint64_t cdi_elapsed_ms(void)
+{
+    return get_tick_count() / 1000;
+}
-- 
2.6.3