comparison dwtx/dwtxhelper/TimerTask.d @ 164:de96284b35d8

add cancel
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 01:36:47 +0200
parents 86617aa6b5dd
children 987b95661bb9
comparison
equal deleted inserted replaced
128:8df1d4193877 164:de96284b35d8
1 module dwtx.dwtxhelper.TimerTask; 1 module dwtx.dwtxhelper.TimerTask;
2 2
3 import tango.time.Time; 3 import tango.time.Time;
4 import dwt.dwthelper.utils;
4 import dwt.dwthelper.Runnable; 5 import dwt.dwthelper.Runnable;
5 import dwtx.dwtxhelper.Timer; 6 import dwtx.dwtxhelper.Timer;
6 7
7 class TimerTask : Runnable { 8 class TimerTask : Runnable {
8 package TimeSpan period; 9 package TimeSpan period;
9 package Time executionTime; 10 package Time executionTime;
10 package Timer timer; 11 package Timer timer;
11 12
12 // bool cancel(){ 13 bool cancel(){
13 // } 14 implMissing( __FILE__, __LINE__ );
15 return false;
16 }
14 17
15 abstract void run(); 18 abstract void run();
16 19
17 long scheduledExcecutionTime(){ 20 long scheduledExcecutionTime(){
18 return ( executionTime - Time.epoch1970 ).millis; 21 return ( executionTime - Time.epoch1970 ).millis;