Sign in to follow this  
Followers 0
jerome

Timer functions library

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



I edited it to add description of functions... It's more clear now...

I'll post a better demo one day...

Share this post


Link to post
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
Sign in to follow this  
Followers 0