Thanks but it seems way more complex then I need, I tried writing my own but I get an acces violation error. here is my try : http://dl.dropbox.com/u/15024434/Timer.d . Can someone spot the error? keep in mind I don't really understand the threading model and pointers.
2011/7/19 Piotr Szturmaj <bncr...@jadamspam.pl> > 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. >