From 07e55935cf49c94a94dcc75d8240d0733d1ed5d7 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 6 Nov 2021 05:20:59 +1100 Subject: plugins: Rewrote timer plugin fixing multiple issues. Added emulated time recording as well as wall clock time. Fixed recording time for multiple software items per system. An incorrect constraint on the database table meant that time was only being recorded for a single software item per system. Detect the "empty" driver so the time spent at the selection menu isn't recorded (you'd get multiple entries for this due to the way options leak when returning to the system selection menu). Included schema migration code to update existing timer plugin databases. Also replaced some unnecessary floating point code with integer maths, added log messages, and made the plugin unload unload its database access code during emulation. Changed other plugins' use of paths with trailing slashes as this causes stat to fail on Windows. --- docs/source/plugins/timer.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/source/plugins') diff --git a/docs/source/plugins/timer.rst b/docs/source/plugins/timer.rst index 9576f0acc20..578dd2beb50 100644 --- a/docs/source/plugins/timer.rst +++ b/docs/source/plugins/timer.rst @@ -1,7 +1,7 @@ .. _plugins-timer: -Timer Plugin -============ +Game Play Timer Plugin +====================== The timer plugin records the total time spent emulating each combination of a system and a software list item, as well as the number of times each combination @@ -9,12 +9,12 @@ has been launched. To see the statistics, bring up the main menu (press **Tab** during emulation by default), choose **Plugin Options**, and then choose **Timer**. -Note that this plugin records wall clock time, not emulated time. That is, it -records the real time duration elapsed while the emulation is running, according -to the host OS. This may be shorter than the elapsed emulated time if you turn -off throttling or use MAME’s “fast forward” feature, or it may be longer than -the elapsed emulated time if you pause the emulation of if the emulation is too -demanding to run at full speed. +This plugin records wall clock time (the real time duration elapsed while +emulation is running, according to the host OS) as well as emulated time. The +elapsed wall clock time may be shorter than the elapsed emulated time if you +turn off throttling or use MAME’s “fast forward” feature, or it may be longer +than the elapsed emulated time if you pause the emulation of if the emulation is +too demanding to run at full speed. The statistics are stored in the file **timer.db** in the **timer** folder inside your plugin data folder (see the -- cgit v1.2.3-70-g09d2