Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
pyG4Timer.cc File Reference
#include <boost/python.hpp>
#include "G4Timer.hh"

Go to the source code of this file.

Functions

void export_G4Timer ()
 

Function Documentation

void export_G4Timer ( )

Definition at line 40 of file pyG4Timer.cc.

References G4Timer::GetRealElapsed(), G4Timer::GetSystemElapsed(), G4Timer::GetUserElapsed(), G4Timer::IsValid(), G4Timer::Start(), and G4Timer::Stop().

Referenced by BOOST_PYTHON_MODULE().

41 {
42  class_<G4Timer>("G4Timer", "Timer")
43  // ---
44  .def("Start", &G4Timer::Start)
45  .def("Stop", &G4Timer::Stop)
46  .def("IsValid", &G4Timer::IsValid)
47  .def("GetRealElapsed", &G4Timer::GetRealElapsed)
48  .def("GetSystemElapsed", &G4Timer::GetSystemElapsed)
49  .def("GetUserElapsed", &G4Timer::GetUserElapsed)
50  ;
51 }
G4double GetSystemElapsed() const
Definition: G4Timer.cc:119
G4bool IsValid() const
G4double GetUserElapsed() const
Definition: G4Timer.cc:130
G4double GetRealElapsed() const
Definition: G4Timer.cc:107
void Stop()
void Start()