summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/systemc/core/sc_time.cc21
-rw-r--r--src/systemc/ext/core/sc_time.hh5
2 files changed, 26 insertions, 0 deletions
diff --git a/src/systemc/core/sc_time.cc b/src/systemc/core/sc_time.cc
index 383d1d4ad..5d6b6348f 100644
--- a/src/systemc/core/sc_time.cc
+++ b/src/systemc/core/sc_time.cc
@@ -158,6 +158,27 @@ sc_time::print(std::ostream &) const
warn("%s not implemented.\n", __PRETTY_FUNCTION__);
}
+sc_time
+sc_time::from_value(sc_dt::uint64)
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return sc_time();
+}
+
+sc_time
+sc_time::from_seconds(double)
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return sc_time();
+}
+
+sc_time
+sc_time::from_string(const char *str)
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return sc_time();
+}
+
const sc_time
operator + (const sc_time &, const sc_time &)
{
diff --git a/src/systemc/ext/core/sc_time.hh b/src/systemc/ext/core/sc_time.hh
index 32f7eadda..d52ed8112 100644
--- a/src/systemc/ext/core/sc_time.hh
+++ b/src/systemc/ext/core/sc_time.hh
@@ -75,6 +75,11 @@ class sc_time
sc_time &operator /= (double);
void print(std::ostream & =std::cout) const;
+
+ // Deprecated
+ static sc_time from_value(sc_dt::uint64);
+ static sc_time from_seconds(double);
+ static sc_time from_string(const char *str);
};
const sc_time operator + (const sc_time &, const sc_time &);