This file is indexed.

/usr/include/dcmtk/ofstd/oftimer.h is in libdcmtk-dev 3.6.1~20160216-4.

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
/*
 *
 *  Copyright (C) 1999-2012, OFFIS e.V.
 *  All rights reserved.  See COPYRIGHT file for details.
 *
 *  This software and supporting documentation were developed by
 *
 *    OFFIS e.V.
 *    R&D Division Health
 *    Escherweg 2
 *    D-26121 Oldenburg, Germany
 *
 *
 *  Module:  ofstd
 *
 *  Author:  Joerg Riesmeier
 *
 *  Purpose: Class for measurement of time (Header)
 *
 */


#ifndef OFTIMER_H
#define OFTIMER_H

#include "dcmtk/config/osconfig.h"

#include "dcmtk/ofstd/ofstream.h"
#include "dcmtk/ofstd/ofdefine.h"


/*---------------------*
 *  class declaration  *
 *---------------------*/

/** A class for measurement of time.
 *  Timer intervals are represented as floating point values of seconds.
 */
class DCMTK_OFSTD_EXPORT OFTimer
{

 public:

    /** constructor
     */
    OFTimer();

    /** reset start time
     */
    void reset();

    /** get elapsed time.
     *  i.e. difference between current and start time
     *
     ** @return elapsed time in seconds
     */
    double getDiff() const;

    /** get difference between current time and specified time
     *
     ** @param  start  reference time (in seconds)
     *
     ** @return difference between the two times (in seconds)
     */
    static double getDiff(double start);

    /** get current time
     *
     ** @return current time in seconds
     */
    static double getTime();


 private:

    /// reference/start time
    double Start;
};


/** output the current time difference to the given stream.
 *  The output format is "<numeric value> <SI unit>" where "SI unit" is:
 *  - "ms" for milliseconds if the time difference is less than 1 second
 *  - "s" for seconds if the time difference is less than 60 seconds
 *  - "min" for minutes if the time difference is less than 3600 seconds
 *  - "h" for hours otherwise (i.e. the difference is 3600 seconds or more)
 *  @param stream output stream
 *  @param timer OFTimer object to print
 *  @return reference to the output stream
 */
DCMTK_OFSTD_EXPORT STD_NAMESPACE ostream &operator<<(STD_NAMESPACE ostream &stream, const OFTimer &timer);


#endif