summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/netlist/devices/nld_log.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/netlist/devices/nld_log.cpp b/src/lib/netlist/devices/nld_log.cpp
index 03165a573ef..733dad370e0 100644
--- a/src/lib/netlist/devices/nld_log.cpp
+++ b/src/lib/netlist/devices/nld_log.cpp
@@ -28,6 +28,11 @@ namespace netlist
m_strm.imbue(std::locale::classic());
}
+ NETLIB_DESTRUCTOR(log)
+ {
+ m_writer.writeline(plib::pfmt("{1:.9} {2}").e(exec().time().as_fp<nl_fptype>()).e(static_cast<nl_fptype>(m_I())));
+ }
+
NETLIB_UPDATEI()
{
/* use pstring::sprintf, it is a LOT faster */