Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/inc/azure_c_shared_utility/timer.h

raw
1 // Copyright (C) Microsoft Corporation. All rights reserved.
2
3 #include "windows.h"
4
5 #ifndef TIMER_H
6 #define TIMER_H
7
8 #ifdef __cplusplus
9 extern "C"
10 {
11 #endif
12
13 typedef struct TIMER_HANDLE_DATA_TAG* TIMER_HANDLE;
14
15 #include "umock_c/umock_c_prod.h"
16
17
18 MOCKABLE_FUNCTION(, TIMER_HANDLE, timer_create);
19 MOCKABLE_FUNCTION(, void, timer_start, TIMER_HANDLE, handle);
20 MOCKABLE_FUNCTION(, double, timer_get_elapsed, TIMER_HANDLE, timer);
21 MOCKABLE_FUNCTION(, double, timer_get_elapsed_ms, TIMER_HANDLE, timer);
22 MOCKABLE_FUNCTION(, void, timer_destroy, TIMER_HANDLE, timer);
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28
29 #endif