30 #include "pybind11/operators.h" 41 run(pybind11::module &systemc)
override 43 pybind11::class_<sc_core::sc_time> sc_time(systemc,
"sc_time");
46 .def(pybind11::init<>())
47 .def(pybind11::init<double, sc_core::sc_time_unit>())
48 .def(pybind11::init<const sc_core::sc_time &>())
58 .def(pybind11::self == pybind11::self)
59 .def(pybind11::self != pybind11::self)
60 .def(pybind11::self < pybind11::self)
61 .def(pybind11::self <= pybind11::self)
62 .def(pybind11::self > pybind11::self)
63 .def(pybind11::self >= pybind11::self)
64 .def(pybind11::self += pybind11::self)
65 .def(pybind11::self -= pybind11::self)
66 .def(pybind11::self *=
double())
67 .def(pybind11::self /=
double())
70 pybind11::enum_<sc_core::sc_time_unit>(sc_time,
"sc_time_unit")
sc_dt::uint64 value() const
double to_seconds() const
const std::string to_string() const
virtual void run(pybind11::module &systemc)=0