⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 timer.for

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 FOR
字号:

c*
c* Code to handle the timer callbacks and adjust the rate as necessary
c*



        subroutine InitTimer

        include 'life.fi'

        NeedNewTimer = .FALSE.
        FastEnoughCount = 0
        TimerDelay = ONE_SECOND/4
        call DoTimer( .TRUE. )
        end


        subroutine FiniTimer

        include 'life.fi'

        call DoTimer( .FALSE. )
        end


        subroutine TimerTurbo

        include 'life.fi'

        TimerDelay = ONE_SECOND/100
        NeedNewTimer = .TRUE.
        call NewTimer()

        end


        subroutine NewTimer

        include 'life.fi'

        if( NeedNewTimer ) then
            call DoTimer( .FALSE. )
            call DoTimer( .TRUE. )
            NeedNewTimer = .FALSE.
        end if

        end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -