Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Timer.hh 67970 2013-03-13 10:10:06Z gcosmo $
|
||||
// $Id: G4Timer.hh 110674 2018-06-07 10:30:11Z gcosmo $
|
||||
//
|
||||
//
|
||||
// ----------------------------------------------------------------------
|
||||
@@ -107,9 +107,13 @@
|
||||
#include "G4Types.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
#include <chrono>
|
||||
|
||||
class G4Timer
|
||||
{
|
||||
public:
|
||||
typedef std::chrono::high_resolution_clock clock_type;
|
||||
|
||||
public:
|
||||
|
||||
G4Timer();
|
||||
|
||||
@@ -121,10 +125,10 @@ class G4Timer
|
||||
G4double GetSystemElapsed() const;
|
||||
G4double GetUserElapsed() const;
|
||||
|
||||
private:
|
||||
private:
|
||||
|
||||
G4bool fValidTimes;
|
||||
clock_t fStartRealTime,fEndRealTime;
|
||||
std::chrono::time_point<clock_type> fStartRealTime, fEndRealTime;
|
||||
tms fStartTimes,fEndTimes;
|
||||
};
|
||||
|
||||
@@ -132,6 +136,4 @@ std::ostream& operator << (std::ostream& os, const G4Timer& t);
|
||||
|
||||
#include "G4Timer.icc"
|
||||
|
||||
#define times ostimes
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user