Project

General

Profile

Download (618 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#ifndef PERFORMANCE_H_
2
#define PERFORMANCE_H_
3

    
4
extern void performance_start(void);
5
extern void performance_init(void);
6

    
7
typedef struct {
8
	u_int32_t high; /* 32 bit count of overruns */
9
	u_int32_t low;  /* 16 bit from T/C running at MCK/2 */
10
} perf_time_t;
11

    
12
extern perf_time_t performance_get(void);
13
extern perf_time_t performance_stop(void);
14

    
15
extern void performance_print(perf_time_t time);
16

    
17
struct performance_checkpoint {
18
	perf_time_t time;
19
	const char * description;
20
};
21

    
22
extern void performance_set_checkpoint(const char * const description);
23
extern void performance_stop_report(void);
24

    
25
#endif /*PERFORMANCE_H_*/
(40-40/59)
Add picture from clipboard (Maximum size: 48.8 MB)