systemc: Implement sc_time::to_string.
authorGabe Black <gabeblack@google.com>
Thu, 6 Sep 2018 00:34:43 +0000 (17:34 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 9 Oct 2018 21:37:14 +0000 (21:37 +0000)
commit0a81eaabc462f09295aba4ba042e838fd6f04cb9
treee885ee4034041292925f6dfcd18003b70160c2ea
parentcdda84fb5df278d083e02b3a7ab616b651e82f58
systemc: Implement sc_time::to_string.

This is just another way to call sc_time::print, but it returns a
string instead of printing to a stream.

Change-Id: Idc90c539127e6153af9511bfe5f258b870362330
Reviewed-on: https://gem5-review.googlesource.com/c/12596
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/sc_time.cc