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_start()</b> c_exam03 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
TIME_START()                                                        C_EXAM03
   Restarts the timer after a call to TIME_STOP().

   Syntax
         TIME_START()

   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_START() is used to restart the timer event checking after being
         suspended by a call to TIME_STOP().

   Examples

         Display a clock on the screen:

         TIME_SET(1,18.2)                 && Timer event every second
         DO WHILE forever
            IF 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
            . . more event testing.
         ENDDO

See Also: RET_TIME() TIME_SET() TIME_STOP()

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