diff options
Diffstat (limited to 'src/systemc/core')
-rw-r--r-- | src/systemc/core/sc_time.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/systemc/core/sc_time.cc b/src/systemc/core/sc_time.cc index 74345d041..69d58e512 100644 --- a/src/systemc/core/sc_time.cc +++ b/src/systemc/core/sc_time.cc @@ -27,6 +27,7 @@ * Authors: Gabe Black */ +#include <sstream> #include <vector> #include "base/logging.hh" @@ -211,8 +212,9 @@ sc_time::to_seconds() const const std::string sc_time::to_string() const { - warn("%s not implemented.\n", __PRETTY_FUNCTION__); - return ""; + std::ostringstream ss; + print(ss); + return ss.str(); } bool |