event based timer

Piotr Szturmaj bncrbme at jadamspam.pl
Tue Jul 19 11:15:59 PDT 2011


maarten van damme wrote:
> Hi everyone,
> for getting to know d a little bit I'm writing a simple pingpong game
> using gtk.
> for it to work I need to be able to do something every 0.1 seconds so I
> was wondering if there was some kind of timer in the phobos library.
> I've looked everywhere but couldn't find one. Is it missing and do i
> have to write my own or have I overlooked it?
>
> maarten

There is no callback timer in Phobos. But here's my implementation of 
timer wheel I used in one of my projects: http://pastebin.com/dRRZtPVW. 
Feel free to use it if you want.


More information about the Digitalmars-d mailing list