Mercurial > projects > dwt-addons
diff dwtx/dwtxhelper/Timer.d @ 200:eb3414669eb0 default tip
fix for dmd 1.041 and tango 0.99.8
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 28 Mar 2009 03:09:57 +0100 |
parents | 987b95661bb9 |
children |
line wrap: on
line diff
--- a/dwtx/dwtxhelper/Timer.d Fri Mar 13 17:03:26 2009 +0100 +++ b/dwtx/dwtxhelper/Timer.d Sat Mar 28 03:09:57 2009 +0100 @@ -389,11 +389,7 @@ } void scheduleAtFixedRate(TimerTask task, long delay, long period){ assert( task ); - version(TANGOSVN){ - task.executionTime = Clock.now + TimeSpan.fromMillis(delay); - } else { - task.executionTime = Clock.now + TimeSpan.millis(delay); - } + task.executionTime = Clock.now + TimeSpan.fromMillis(delay); task.timer = this; synchronized(mutex){ int index = 0;