digitalmars.D.learn - D timer
- SaltySugar (2/2) Feb 10 2013 Can i do my own timer in D console application?
- rumbu (4/6) Feb 10 2013 There is no Timer in D as you know it from C# and also there are
- David (7/9) Feb 10 2013 Not sure what you mean, but I have a pretty solid Timer implementation
- bearophile (5/14) Feb 26 2013 It's a common need. So maybe it's a good idea to put a version of
- David (3/19) Feb 27 2013 I asked a while ago on the main NG if I should make it phobos
- heromyth (5/7) Feb 26 2013 I have also created one. Please, see here:
Can i do my own timer in D console application?
Feb 10 2013
On Sunday, 10 February 2013 at 14:49:15 UTC, SaltySugar wrote:Can i do my own timer in D console application?no events. You must rely on SetTimer WinAPI and write your own TimerProc.
Feb 10 2013
Am 10.02.2013 15:49, schrieb SaltySugar:Can i do my own timer in D console application?Not sure what you mean, but I have a pretty solid Timer implementation (Threaded) https://github.com/Dav1dde/BraLa/blob/master/brala/utils/thread.d The file has no dependencies, so copy it over and have fun. License of the whole application is GPLv3, but if you need it relicensed drop me an e-mail or notify me somehow
Feb 10 2013
David:Not sure what you mean, but I have a pretty solid Timer implementation (Threaded) https://github.com/Dav1dde/BraLa/blob/master/brala/utils/thread.d The file has no dependencies, so copy it over and have fun. License of the whole application is GPLv3, but if you need it relicensed drop me an e-mail or notify me somehowIt's a common need. So maybe it's a good idea to put a version of that code in Phobos. Bye, bearophile
Feb 26 2013
Am 26.02.2013 14:19, schrieb bearophile:David:I asked a while ago on the main NG if I should make it phobos compatible, answer was no.Not sure what you mean, but I have a pretty solid Timer implementation (Threaded) https://github.com/Dav1dde/BraLa/blob/master/brala/utils/thread.d The file has no dependencies, so copy it over and have fun. License of the whole application is GPLv3, but if you need it relicensed drop me an e-mail or notify me somehowIt's a common need. So maybe it's a good idea to put a version of that code in Phobos. Bye, bearophile
Feb 27 2013
On Sunday, 10 February 2013 at 14:49:15 UTC, SaltySugar wrote:Can i do my own timer in D console application?I have also created one. Please, see here: https://bitbucket.org/heromyth/dtoolkit/src/a8b5f8874e3d82373b71a2ca5c9f02a73362b56a/toolkit/System/Timer.d?at=default It ported from http://www.codeproject.com/Articles/98346/Microsecond-and-Millisecond-NET-Timer
Feb 26 2013