aboutsummaryrefslogtreecommitdiff
path: root/src/timeout.h
blob: af7e591c328f76626b0daeb21040f3133ca183e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _TM_H
#define _TM_H

typedef struct t_tm_tag {
    int tm_return;
    int tm_block;
    int tm_start;
    int tm_end;
} t_tm;
typedef t_tm *p_tm;

void tm_set(p_tm tm, int tm_block, int tm_return);
int tm_getremaining(p_tm tm);
int tm_getelapsed(p_tm tm);
int tm_gettime(void);
void tm_get(p_tm tm, int *tm_block, int *tm_return);
void tm_markstart(p_tm tm);
void tm_open(lua_State *L);

#endif