diff options
| author | 2013-12-29 01:27:49 +0000 | |
|---|---|---|
| committer | 2013-12-29 01:27:49 +0000 | |
| commit | f6a91bbb1341f1b6c2afcc38949de2e528da7a6a (patch) | |
| tree | 13a06f827426cbba01d4e3759fdee3662605ee64 /src/tools | |
| parent | cbd26a090225658e1b68f136b444c1dff1c42ab5 (diff) | |
Further untangled nl_base.[hc] and mame-specific netlist.c. No wn
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/nltool.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/tools/nltool.c b/src/tools/nltool.c index 5bdb965cb51..7c8a11e3485 100644 --- a/src/tools/nltool.c +++ b/src/tools/nltool.c @@ -116,8 +116,6 @@ public: this->init_object(*this, "netlist"); m_setup->init(); - this->set_clock_freq(NETLIST_CLOCK); - // read the netlist ... //m_setup_func(*m_setup); @@ -183,17 +181,12 @@ int main(int argc, char *argv[]) nt.read_netlist(filetobuf(opts.value("f"))); double ttr = opts.float_value("ttr"); - INT64 tt = ttr * NETLIST_CLOCK; - printf("startup time ==> %5.3f\n", (double) (osd_ticks() - t) / (double) osd_ticks_per_second() ); printf("runnning ...\n"); t = osd_ticks(); - while (tt>0) - { - INT32 tr = MIN(tt, NETLIST_CLOCK / 10); - tt -= tr; - nt.process_queue(tr); - } + + nt.process_queue(netlist_time::from_double(ttr)); + double emutime = (double) (osd_ticks() - t) / (double) osd_ticks_per_second(); printf("%f seconds emulation took %f real time ==> %5.2f%%\n", ttr, emutime, ttr/emutime*100.0); |
