aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2018-09-23 14:04:26 -0500
committerBrent Cook <busterb@gmail.com>2018-09-23 14:04:26 -0500
commitb7a580e86a5e0329a5639cbeb367ee45018ba16d (patch)
tree4b68969509baac7f1204a4717c6989ccff6ec57f /apps
parent35dbed1ae9f69ed6aed40789a7fb5deeb6eb8888 (diff)
downloadportable-b7a580e86a5e0329a5639cbeb367ee45018ba16d.tar.gz
portable-b7a580e86a5e0329a5639cbeb367ee45018ba16d.tar.bz2
portable-b7a580e86a5e0329a5639cbeb367ee45018ba16d.zip
implement app_timer_real
Diffstat (limited to 'apps')
-rw-r--r--apps/openssl/apps_win.c14
1 files changed, 14 insertions, 0 deletions
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
@@ -13,6 +13,20 @@
13#include "apps.h" 13#include "apps.h"
14 14
15double 15double
16app_timer_real(int get)
17{
18 static __int64 start;
19 __int64 now;
20
21 now = GetTickCount64();
22 if (get) {
23 return (now - start) / 1000.0;
24 }
25 start = now;
26 return 0.0;
27}
28
29double
16app_timer_user(int stop) 30app_timer_user(int stop)
17{ 31{
18 static unsigned __int64 tmstart; 32 static unsigned __int64 tmstart;