From 9a898c85fbe13c615983e3cf86158d68f115e669 Mon Sep 17 00:00:00 2001 From: TheQuinbox Date: Wed, 19 Jun 2024 13:08:06 -0600 Subject: [PATCH] Minor doc formatting. --- .../builtin/User Interface/Functions/idle_ticks.nvgt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/doc/src/references/builtin/User Interface/Functions/idle_ticks.nvgt b/doc/src/references/builtin/User Interface/Functions/idle_ticks.nvgt index 2812a5e9..5ac6a3e7 100644 --- a/doc/src/references/builtin/User Interface/Functions/idle_ticks.nvgt +++ b/doc/src/references/builtin/User Interface/Functions/idle_ticks.nvgt @@ -1,6 +1,6 @@ /* Obtain the time passed since a user has pressed a key or used the mouse. - uint64 idle_ticks() + uint64 idle_ticks(); ## returns Returns the number of milliseconds since a user has not interacted with the machine. ## remarks @@ -8,10 +8,8 @@ */ // Example -void main() - { +void main() { int64 t; - show_window("Idle test"); wait(50); screen_reader_speak("Press space to check the idle time and escape to exit.", true); @@ -19,7 +17,6 @@ void main() wait(5); if (key_pressed(KEY_SPACE)) screen_reader_speak("You have been idle for %0 milliseconds".format(t), true); - t = idle_ticks(); } }