28#include "pybind11/operators.h"
37 pybind11::class_<sc_core::sc_time>
sc_time(systemc,
"sc_time");
40 .def(pybind11::init<>())
41 .def(pybind11::init<double, sc_core::sc_time_unit>())
42 .def(pybind11::init<const sc_core::sc_time &>())
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 -= pybind11::self)
65 .def(pybind11::self *=
double())
66 .def(pybind11::self /=
double())
67 .def(pybind11::self + pybind11::self)
68 .def(pybind11::self - pybind11::self)
69 .def(pybind11::self *
double())
70 .def(pybind11::self /
double())
73 pybind11::enum_<sc_core::sc_time_unit>(
sc_time,
"sc_time_unit")
static sc_time from_seconds(double)
static sc_time from_value(sc_dt::uint64)
static sc_time from_string(const char *str)
double to_seconds() const
const std::string to_string() const
sc_dt::uint64 value() const
sc_dt::uint64 value() const