diff options
Diffstat (limited to 'apps/openssl/apps_win.c')
| -rw-r--r-- | apps/openssl/apps_win.c | 14 |
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 | ||
| 15 | double | 15 | double |
| 16 | app_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 | |||
| 29 | double | ||
| 16 | app_timer_user(int stop) | 30 | app_timer_user(int stop) |
| 17 | { | 31 | { |
| 18 | static unsigned __int64 tmstart; | 32 | static unsigned __int64 tmstart; |
