mirror of https://github.com/KLayout/klayout.git
Provide timing information for Spice reader/writer
This commit is contained in:
parent
04aa005247
commit
b6ba51e563
|
|
@ -29,6 +29,8 @@
|
|||
#include "tlString.h"
|
||||
#include "tlFileUtils.h"
|
||||
#include "tlUri.h"
|
||||
#include "tlTimer.h"
|
||||
#include "tlLog.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <cctype>
|
||||
|
|
@ -249,6 +251,8 @@ NetlistSpiceReader::~NetlistSpiceReader ()
|
|||
|
||||
void NetlistSpiceReader::read (tl::InputStream &stream, db::Netlist &netlist)
|
||||
{
|
||||
tl::SelfTimer timer (tl::verbosity () >= 21, tl::to_string (tr ("Reading netlist ")) + stream.source ());
|
||||
|
||||
mp_stream.reset (new tl::TextInputStream (stream));
|
||||
mp_netlist = &netlist;
|
||||
mp_circuit = 0;
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@
|
|||
|
||||
#include "tlStream.h"
|
||||
#include "tlUniqueName.h"
|
||||
#include "tlTimer.h"
|
||||
#include "tlLog.h"
|
||||
|
||||
#include <sstream>
|
||||
#include <set>
|
||||
|
|
@ -244,6 +246,8 @@ void NetlistSpiceWriter::set_with_comments (bool with_comments)
|
|||
|
||||
void NetlistSpiceWriter::write (tl::OutputStream &stream, const db::Netlist &netlist, const std::string &description)
|
||||
{
|
||||
tl::SelfTimer timer (tl::verbosity () >= 21, tl::to_string (tr ("Writing netlist ")) + stream.path ());
|
||||
|
||||
mp_stream = &stream;
|
||||
mp_netlist = &netlist;
|
||||
mp_delegate->attach_writer (this);
|
||||
|
|
|
|||
Loading…
Reference in New Issue