示例#1
0
文件: nltool.c 项目: ef1105/mameplus
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);
}
示例#2
0
文件: options.c 项目: Ilgrim/MAMEHub
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;
}
示例#3
0
文件: options.cpp 项目: Fulg/mame
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;
}