28 #include "pybind11/operators.h"
39 run(pybind11::module &systemc)
override
41 pybind11::class_<sc_core::sc_time> sc_time(systemc,
"sc_time");
44 .def(pybind11::init<>())
45 .def(pybind11::init<double, sc_core::sc_time_unit>())
46 .def(pybind11::init<const sc_core::sc_time &>())
56 .def(pybind11::self == pybind11::self)
57 .def(pybind11::self != pybind11::self)
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 *=
double())
65 .def(pybind11::self /=
double())
68 pybind11::enum_<sc_core::sc_time_unit>(sc_time,
"sc_time_unit")