File: sarfps.h

package info (click to toggle)
searchandrescue 0.8.2-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,656 kB
  • ctags: 6,111
  • sloc: ansic: 89,072; cpp: 7,691; sh: 90; makefile: 80
file content (48 lines) | stat: -rw-r--r-- 947 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
                    SAR Frames Per Second Tallying
 */

#ifndef SARFPS_H
#define SARFPS_H

#include <sys/stat.h>

/*
 *	Frame counter structure for the sar_fps_struct:
 */
typedef struct {

	/* Number of frames drawn. */
	unsigned int	selection,		/* Selection buffer. */
			frame,			/* Frame buffer. */
			total;

} sar_fps_frames_struct;

/*
 *	Frames per second tallying structure:
 */
typedef struct {

	void *core_ptr;		/* Pointer back to core. */
	void *gw_ptr;		/* Pointer back to graphics wrapper structure
				 * so we know which window we're taking
				 * fps stats for.
				 */

	/* Frames results from last tally. */
	sar_fps_frames_struct ft;

	/* Frames currently being counted. */
	sar_fps_frames_struct fc;

	time_t last_frames_reset;	/* Last time frames reset to 0 in
					 * milliseconds.
					 */
	time_t next_tally;		/* Always last_frames_reset + 1000
					 * milliseconds.
					 */

} sar_fps_struct;

#endif	/* SARFPS_H */