This file is indexed.

/usr/include/oce/OSD_Timer.hxx is in liboce-foundation-dev 0.17.2-2.

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
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _OSD_Timer_HeaderFile
#define _OSD_Timer_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Standard_Real.hxx>
#include <OSD_Chronometer.hxx>
#include <Standard_OStream.hxx>
#include <Standard_Integer.hxx>


//! Working on heterogeneous platforms
//! we need to use the system call gettimeofday.
//! This function is portable and it measures ELAPSED
//! time and CPU time in seconds and microseconds.
//! Example: OSD_Timer aTimer;
//! aTimer.Start();   // Start  the timers (t1).
//! .....            // Do something.
//! aTimer.Stop();    // Stop the timers (t2).
//! aTimer.Show();    // Give the elapsed time between t1 and t2.
//! // Give also the process CPU time between
//! // t1 and t2.
class OSD_Timer  : public OSD_Chronometer
{
public:

  DEFINE_STANDARD_ALLOC

  
  //! Builds a Chronometer initialized and stopped.
  Standard_EXPORT OSD_Timer();
  
  //! Stops and reinitializes the timer.
  Standard_EXPORT virtual   void Reset() ;
  
  //! Shows both the elapsed time and CPU time on the standard output
  //! stream <cout>.The chronometer can be running (Lap Time) or
  //! stopped.
  Standard_EXPORT virtual   void Show() ;
  
  //! Shows both the elapsed time and CPU  time on the
  //! output stream <OS>.
  Standard_EXPORT virtual   void Show (Standard_OStream& os) ;
  
  //! returns both the elapsed time(seconds,minutes,hours)
  //! and CPU  time.
  Standard_EXPORT   void Show (Standard_Real& seconds, Standard_Integer& minutes, Standard_Integer& hours, Standard_Real& CPUtime) ;
  
  //! Stops the Timer.
  Standard_EXPORT virtual   void Stop() ;
  
  //! Starts (after Create or Reset) or restarts (after Stop)
  //! the Timer.
  Standard_EXPORT virtual   void Start() ;
  
  //! Returns elapsed time in seconds.
  Standard_EXPORT   Standard_Real ElapsedTime() ;




protected:





private:



  Standard_Real TimeStart;
  Standard_Real TimeCumul;


};







#endif // _OSD_Timer_HeaderFile