Geant4-11
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

◆ export_G4Timer()

void export_G4Timer ( )

Definition at line 39 of file pyG4Timer.cc.

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

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

Referenced by BOOST_PYTHON_MODULE().