netlist: nld_log now writes out last value at end of run. (nw)

This commit is contained in:
couriersud 2020-05-01 10:24:20 +02:00
parent 9dd0b48b3e
commit 0120d1d8ff

View File

@ -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 */