Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>time_stop()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TIME_STOP()
   Suspends timer event checking.

   Syntax
         TIME_STOP()

   Arguments
         None

   Returns
         None

   Description
         Using the TIME_SET() function, you can specify the number of clock
         ticks (18.2 per second) before a timer event is issued. The event
         returned by the KEY_PRESS() function will have a scan code value of
         217 and the ASCII code value will be the BIOS time that you should
         have received the event.

         TIME_STOP() is used to suspend the timer event checking. It can be
         restarted with a call to TIME_START().

   Examples

         Display a clock on the screen:

         TIME_SET(1,18.2)            && Timer event every second
         DO WHILE forever
         m_event = KEY_PRESS()       && Wait for next event
            IF m_event = 16          && Timer event
               @ 0,70 SAY TIME()     && Display time
               LOOP
            ENDIF
            IF m_event = 32 .AND. BUTTON_CUR() = stop_clock
               TIME_STOP()
               LOOP
            ENDIF
            IF m_event = 32 .AND. BUTTON_CUR() = start_clock
               TIME_START()
               LOOP
            ENDIF
         ENDDO

See Also: RET_TIME() TIME_SET() TIME_START()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson