This file is indexed.

/usr/include/trilinos/MLAPI_TimeObject.h is in libtrilinos-ml-dev 12.10.1-3.

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
/* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact      */
/* person and disclaimer.                                               */
/* ******************************************************************** */
#ifndef MLAPI_TIMEOBJECT_H
#define MLAPI_TIMEOBJECT_H

#include "MLAPI_Error.h"
#include "MLAPI_Workspace.h"
#include "Epetra_Time.h"

namespace MLAPI {

/*!
\class TimeObject

\brief Class to track time spent in an object.

\author Marzio Sala, SNL 9214

\date Last updated on Feb-05.

*/

class TimeObject {

public:

  //! Constructor, set counter to 0.0.
  TimeObject() :
    Time_(GetEpetra_Comm())
  {
    Time_.ResetStartTime();
    TotalTime_ = 0.0;
  }

  //! Destructor.
  ~TimeObject() {};

  //! Resets the internal timer.
  inline void ResetTimer() const
  {
    Time_.ResetStartTime();
  }

  //! Updates the internal timer with the time spent since the last call to ResetTimer().
  inline void UpdateTime() const
  {
    TotalTime_ += Time_.ElapsedTime();
  }

  //! Updates the internal timer with input value \c t.
  inline void UpdateTime(double t) const
  {
    TotalTime_ += t;
  }

  //! Returns the internally stored counter.
  inline double GetTime() const
  {
    return(TotalTime_);
  }

protected:

  //! Object used to track time.
  mutable Epetra_Time Time_;
  //! Internal counter.
  mutable double TotalTime_;

}; // class TimeObject

} // namespace MLPI

#endif // MLAPI_TIMEOBJECT_H