This file is indexed.

/usr/include/ug/ugtimer.h is in libdune-uggrid-dev 2.5.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
/****************************************************************************/
/*																			*/
/* File:	  ugtimer.h														*/
/*																			*/
/* Purpose:   implements a simple timing facility							*/
/*																			*/
/* Author:	  Stefan Lang                                                   */
/*			  Institut fuer Computeranwendungen III                                                 */
/*			  Universitaet Stuttgart										*/
/*			  Pfaffenwaldring 27											*/
/*			  70550 Stuttgart												*/
/*			  email: ug@ica3.uni-stuttgart.de								*/
/*																			*/
/* History:   980805   begin                                                */
/*																			*/
/* Remarks:                                                                                                                             */
/*																			*/
/****************************************************************************/



/****************************************************************************/
/*																			*/
/* auto include mechanism and other include files							*/
/*																			*/
/****************************************************************************/

#ifndef __UGTIMER__
#define __UGTIMER__

#include "namespace.h"

START_UG_NAMESPACE

/****************************************************************************/
/*																			*/
/* defines in the following order											*/
/*																			*/
/*		  compile time constants defining static data size (i.e. arrays)	*/
/*		  other constants													*/
/*		  macros															*/
/*																			*/
/****************************************************************************/

#define MAX_TIMER       30

#define NEW_TIMER(n)    { new_timer(&(n)); }
#define DEL_TIMER(n)    { ug_timer[(n)].used = false; }
#define RESET_TIMER(n)  { ug_timer[(n)].start= 0.0; \
                          ug_timer[(n)].stop = 0.0; \
                          ug_timer[(n)].sum = 0.0; }
#define START_TIMER(n)  { ug_timer[(n)].start = CURRENT_TIME; }
#define STOP_TIMER(n)   { ug_timer[(n)].stop = CURRENT_TIME; }
#define DIFF_TIMER(n)   (ug_timer[(n)].stop-ug_timer[(n)].start)
#define SUM_TIMER(n)    { STOP_TIMER(n) ug_timer[(n)].sum += DIFF_TIMER(n); }
#define EVAL_TIMER(n)   (ug_timer[(n)].sum)


/****************************************************************************/
/*																			*/
/* data structures exported by the corresponding source file				*/
/*																			*/
/****************************************************************************/

typedef struct {
  bool used;
  double start;
  double stop;
  double sum;
} UG_TIMER;


/****************************************************************************/
/*																			*/
/* definition of exported global variables									*/
/*																			*/
/****************************************************************************/

extern UG_TIMER ug_timer[MAX_TIMER];


/****************************************************************************/
/*																			*/
/* function declarations													*/
/*																			*/
/****************************************************************************/

void new_timer (int *n);

END_UG_NAMESPACE

#endif