aboutsummaryrefslogtreecommitdiff
path: root/generic/perfos.h
blob: 74df0338f538f9ac11c8c910a007eda13b9d31dc (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
 *-----------------------------------------------------------------------
 *-----------------------------------------------------------------------
 * 
 *    File:	   perfos.h
 * 
 *    Project:     Hegias
 * 
 *    Abstract:    Header for perf module.
 * 
 *-----------------------------------------------------------------------
 *-----------------------------------------------------------------------
 */


/*
 *----------------- Distribution and Copyright --------------------------
 *
 * This software is copyright by the CENA/DGAC/FRANCE
 * All rights reserved.
 *
 * No part of the material protected by this copyright notice
 * may be reproduced or utilized for commercial use in any form
 * without written permission of the copyright owner.
 *
 * It may be reproduced or utilized for R&D use in Non Profit
 * Organization.
 *
 *-----------------------------------------------------------------------
 */


/*
 *----------------- Disclaimer ------------------------------------------
 *
 * This software and its documentation are provided "AS IS" and
 * without any expressed or implied warranties whatsoever.
 * No warranties as to performance, merchantability, or fitness
 * for a particular purpose exist.
 *
 * Because of the diversity of conditions and hardware under
 * which this software may be used, no warranty of fitness for
 * a particular purpose is offered.  The user is advised to
 * test the software thoroughly before relying on it.  The user
 * must assume the entire risk and liability of using this
 * software.
 *
 * In no event shall any person or organization of people be
 * held responsible for any direct, indirect, consequential
 * or inconsequential damages or lost profits.
 *
 *-----------------------------------------------------------------------
 */

#ifndef _perfos_h
#define _perfos_h

#ifdef __CPLUSPLUS__
extern "C" {
#endif


/*
 *-----------------------------------------------------------------------
 *
 * Included files.
 *
 *-----------------------------------------------------------------------
 */

#include <stdio.h>
#include <math.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/times.h>
#include <X11/Xlib.h>


typedef struct
{
  long   current_correction;
  long   current_delay;
  long   total_delay;
  int    actions;
  char   *message;
} ChronoRec, *Chrono;



/*
 *-----------------------------------------------------------------------
 *
 * Prototypes for exported functions.
 *
 *-----------------------------------------------------------------------
 */

void XStartChrono(Chrono /* chrono */, Display */* display */, Drawable /* window */);
void XStopChrono(Chrono /* chrono */, Display */* display */, Drawable /* window */);
void StartChrono(Chrono /* chrono */);
void StopChrono(Chrono /* chrono */);
void StartUCChrono(Chrono /* chrono */);
void StopUCChrono(Chrono /* chrono */);
Chrono NewChrono(char */* message */);
void FreeChrono(Chrono /* chrono */);
void PrintChronos(void);
void RazChronos(void);


#ifdef __CPLUSPLUS__
}
#endif

#endif  /* _perfos_h */