diff options
| author | 2016-05-16 21:12:23 -0400 | |
|---|---|---|
| committer | 2016-05-16 21:12:23 -0400 | |
| commit | fc4ab036fc4822ed9927c3f379f002e16aa3ffeb (patch) | |
| tree | 5a6cbb13ec186cb8205923fdc10480db7421c369 /src/emu/video.cpp | |
| parent | 8ae00de98312d71521b0e8df13bcb8b9c6596ccc (diff) | |
Allow for output to verify that a machine's emulation has ended properly specifically in instances where less than 2 seconds has elapsed. (nw)
Diffstat (limited to 'src/emu/video.cpp')
| -rw-r--r-- | src/emu/video.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/emu/video.cpp b/src/emu/video.cpp index 0f534f759e1..4eff55b5495 100644 --- a/src/emu/video.cpp +++ b/src/emu/video.cpp @@ -585,13 +585,19 @@ void video_manager::exit() machine().render().target_free(m_snap_target); m_snap_bitmap.reset(); - // print a final result if we have at least 2 seconds' worth of data - if (!emulator_info::standalone() && m_overall_emutime.seconds() >= 1) - { + // print a final result if we have at least 2 seconds' worth of data, otherwise let user know you exited cleanly + if (!emulator_info::standalone()) { + + if (m_overall_emutime.seconds() >= 1) { osd_ticks_t tps = osd_ticks_per_second(); double final_real_time = (double)m_overall_real_seconds + (double)m_overall_real_ticks / (double)tps; double final_emu_time = m_overall_emutime.as_double(); osd_printf_info("Average speed: %.2f%% (%d seconds)\n", 100 * final_emu_time / final_real_time, (m_overall_emutime + attotime(0, ATTOSECONDS_PER_SECOND / 2)).seconds()); + } + + else { + osd_printf_info("MAME ended cleanly\n"); + } } } |
