libFirm
Loading...
Searching...
No Matches
timing.h
1/*
2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
4 */
5
10#ifndef FIRM_TIMING_H
11#define FIRM_TIMING_H
12
13#include "begin.h"
14
21typedef struct ir_timer_t ir_timer_t;
22
30FIRM_API int ir_timer_enter_high_priority(void);
31
37FIRM_API int ir_timer_leave_high_priority(void);
38
44FIRM_API ir_timer_t *ir_timer_new(void);
45
50FIRM_API void ir_timer_free(ir_timer_t *timer);
51
56FIRM_API void ir_timer_start(ir_timer_t *timer);
57
62FIRM_API void ir_timer_reset_and_start(ir_timer_t *timer);
63
68FIRM_API void ir_timer_reset(ir_timer_t *timer);
69
75FIRM_API void ir_timer_stop(ir_timer_t *timer);
76
80FIRM_API void ir_timer_init_parent(ir_timer_t *timer);
81
89FIRM_API void ir_timer_push(ir_timer_t *timer);
90
96FIRM_API void ir_timer_pop(ir_timer_t *timer);
97
103FIRM_API unsigned long ir_timer_elapsed_msec(const ir_timer_t *timer);
104
110FIRM_API unsigned long ir_timer_elapsed_usec(const ir_timer_t *timer);
111
115FIRM_API double ir_timer_elapsed_sec(const ir_timer_t *timer);
116
117#include "end.h"
118
119#endif