aboutsummaryrefslogtreecommitdiff
path: root/generic/perfos.h
blob: fb54bf5a35af9cf2671c61c319270e86d4c800a0 (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
/*
 * perfos.h -- Header for perf module.
 *
 * Authors              : Patrick Lecoanet.
 * Creation date        :
 *
 * $Id$
 */

/*
 *  Copyright (c) 1996 - 2005 CENA, Patrick Lecoanet --
 *
 * See the file "Copyright" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 */


#ifndef _perfos_h
#define _perfos_h

#ifdef __CPLUSPLUS__
extern "C" {
#endif

#ifndef _WIN32

#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;
  } ZnChronoRec, *ZnChrono;
  
  
  void ZnXStartChrono(ZnChrono /*chrono*/, Display */*dpy*/, Drawable /*win*/);
  void ZnXStopChrono(ZnChrono /*chrono*/, Display */*dpy*/, Drawable /*win*/);
  void ZnStartChrono(ZnChrono /*chrono*/);
  void ZnStopChrono(ZnChrono /*chrono*/);
  void ZnStartUCChrono(ZnChrono /*chrono*/);
  void ZnStopUCChrono(ZnChrono /*chrono*/);
  ZnChrono ZnNewChrono(char */*message*/);
  void ZnFreeChrono(ZnChrono /*chrono*/);
  void ZnPrintChronos(void);
  void ZnGetChrono(ZnChrono /*chrono*/, long */*time*/, int */*actions*/);
  void ZnResetChronos(ZnChrono /*chrono*/);

#endif /* _WIN32 */

#ifdef __CPLUSPLUS__
}
#endif

#endif  /* _perfos_h */