1 /* 2 * Copyright (C) 2018 Alexander Borisov 3 * 4 * Author: Alexander Borisov <borisov@lexbor.com> 5 */ 6 7 #ifndef LEXBOR_PERF_H 8 #define LEXBOR_PERF_H 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 #include "lexbor/core/base.h" 15 16 17 #ifdef LEXBOR_WITH_PERF 18 19 20 LXB_API void * 21 lexbor_perf_create(void); 22 23 LXB_API void 24 lexbor_perf_clean(void *perf); 25 26 LXB_API void 27 lexbor_perf_destroy(void *perf); 28 29 LXB_API lxb_status_t 30 lexbor_perf_begin(void *perf); 31 32 LXB_API lxb_status_t 33 lexbor_perf_end(void *perf); 34 35 LXB_API double 36 lexbor_perf_in_sec(void *perf); 37 38 39 #endif /* LEXBOR_WITH_PERF */ 40 41 #ifdef __cplusplus 42 } /* extern "C" */ 43 #endif 44 45 #endif /* LEXBOR_PERF_H */ 46