From b7a580e86a5e0329a5639cbeb367ee45018ba16d Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 23 Sep 2018 14:04:26 -0500 Subject: implement app_timer_real --- apps/openssl/apps_win.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/openssl/apps_win.c b/apps/openssl/apps_win.c index 6d066c0..364c033 100644 --- a/apps/openssl/apps_win.c +++ b/apps/openssl/apps_win.c @@ -12,6 +12,20 @@ #include "apps.h" +double +app_timer_real(int get) +{ + static __int64 start; + __int64 now; + + now = GetTickCount64(); + if (get) { + return (now - start) / 1000.0; + } + start = now; + return 0.0; +} + double app_timer_user(int stop) { -- cgit v1.2.3-55-g6feb