runtime_lib.h 476 B

123456789101112131415161718
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef LIB_BASE_RUNTIME_LIB_H_
  6. #define LIB_BASE_RUNTIME_LIB_H_
  7. #include "runtime_timer.h"
  8. void init_wasm_timer();
  9. void exit_wasm_timer();
  10. timer_ctx_t get_wasm_timer_ctx();
  11. timer_ctx_t create_wasm_timer_ctx(unsigned int module_id, int prealloc_num);
  12. void destroy_module_timer_ctx(unsigned int module_id);
  13. #endif /* LIB_BASE_RUNTIME_LIB_H_ */