diff options
author | couriersud <couriersud@gmx.org> | 2020-05-01 10:24:20 +0200 |
---|---|---|
committer | couriersud <couriersud@gmx.org> | 2020-05-01 10:24:20 +0200 |
commit | 0120d1d8ff136a49f7ee78fc2f2f1dc9560ce737 (patch) | |
tree | a2e97778cf4cc6c60516c40eb459e90ac00c9430 | |
parent | 9dd0b48b3e93f63677da8e2dc52f69006024d699 (diff) |
netlist: nld_log now writes out last value at end of run. (nw)
-rw-r--r-- | src/lib/netlist/devices/nld_log.cpp | 5 |
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 */ |