diff options
Diffstat (limited to 'src/emu/uiinput.cpp')
-rw-r--r-- | src/emu/uiinput.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/emu/uiinput.cpp b/src/emu/uiinput.cpp index 02bf1f2aa31..138bf67055d 100644 --- a/src/emu/uiinput.cpp +++ b/src/emu/uiinput.cpp @@ -254,7 +254,7 @@ bool ui_input_manager::pressed_repeat(int code, int speed) { bool pressed; -g_profiler.start(PROFILER_INPUT); + auto profile = g_profiler.start(PROFILER_INPUT); /* get the status of this key (assumed to be only in the defaults) */ assert(code > IPT_UI_FIRST && code < IPT_UI_LAST); @@ -289,8 +289,6 @@ g_profiler.start(PROFILER_INPUT); else m_next_repeat[code] = 0; -g_profiler.stop(); - return pressed; } |