File: util.h

package info (click to toggle)
mame 0.277%2Bdfsg.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 907,524 kB
  • sloc: cpp: 5,198,779; xml: 2,214,830; ansic: 750,334; sh: 34,449; lisp: 19,643; python: 16,298; makefile: 13,238; java: 8,492; yacc: 8,152; javascript: 7,083; cs: 6,013; asm: 4,786; ada: 1,681; pascal: 1,195; lex: 1,174; perl: 585; ruby: 373
file content (22 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef UTIL_H
#define UTIL_H 1

#include <inttypes.h>
#include <sys/time.h>
#include <time.h>

#ifdef __cplusplus
extern "C" {
#endif

uint8_t *readfile(const char *filename, size_t *len);

typedef struct timeval mytime;
mytime gettime(void);
double elapsed(mytime t1, mytime t0);

#ifdef __cplusplus
}
#endif

#endif /* UTIL_H */