static void run(core_options &opts) { netlist_tool_t nt; osd_ticks_t t = osd_ticks(); nt.init(); nt.m_logs = opts.value("l"); nt.read_netlist(filetobuf(opts.value("f"))); double ttr = opts.float_value("t"); printf("startup time ==> %5.3f\n", (double) (osd_ticks() - t) / (double) osd_ticks_per_second() ); printf("runnning ...\n"); t = osd_ticks(); 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); }
bool core_options::operator==(const core_options &rhs) { // iterate over options in the first list for (entry *curentry = m_entrylist; curentry != NULL; curentry = curentry->next()) if (!curentry->is_header()) { // if the values differ, return false if (strcmp(curentry->m_data, rhs.value(curentry->name())) != 0) return false; } return true; }
bool core_options::operator==(const core_options &rhs) { // iterate over options in the first list for (entry &curentry : m_entrylist) if (!curentry.is_header()) { // if the values differ, return false if (strcmp(curentry.value(), rhs.value(curentry.name())) != 0) return false; } return true; }