Jump to content

Timer functions library


jerome
 Share

Recommended Posts

Hello all,

I can post again! It seems that I was banned for an unknown reason for some weeks now...

It seems to be ok again, and I can propose you a timer with callback library.

Usage: For scripts that needs several periodic callback with different period in an optimized way.

; Initialize a first clock timer with choice of frequency and callback function

ClockInit($frequence, $function, $start=True)

; Adding more timers

ClockAdd($frequence, $function, $start=True)

; Start (enable) a timer

ClockStart($number)

; Stop (disable) a timer

ClockStop($number)

; Stop all timers

ClockStopAll()

; Start all timers

ClockStartAll()

;

100% Scripting.

Enjoy

JD

TimerLib.zip

Edited by jerome
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...