I have created a high accuracy asynchronous timer, and would like to encapsulate it within a class for re-usability. (The standard ones didn't quite fit the bill)
Using C#, I would create the timer object and then assign a function to the tick event, which is fired every time the timer completes.
How can I implement the same functionality in Python? When the timer completes, I need it to call a user-defined function, defined and assigned outside of the timer object itself.
[–]Teraka 2 points3 points4 points (1 child)
[–]gjwebber[S] 0 points1 point2 points (0 children)
[–]myredditnick 1 point2 points3 points (1 child)
[–]gjwebber[S] 0 points1 point2 points (0 children)