view dwtx/dwtxhelper/TimerTask.d @ 121:c0304616ea23

Fix: tango assertion error, see tango ticket 1237
author Frank Benoit <benoit@tionex.de>
date Mon, 11 Aug 2008 17:18:41 +0200
parents 86617aa6b5dd
children de96284b35d8
line wrap: on
line source

module dwtx.dwtxhelper.TimerTask;

import tango.time.Time;
import dwt.dwthelper.Runnable;
import dwtx.dwtxhelper.Timer;

class TimerTask : Runnable {
    package TimeSpan period;
    package Time executionTime;
    package Timer timer;

//     bool cancel(){
//     }

    abstract void run();

    long scheduledExcecutionTime(){
        return ( executionTime - Time.epoch1970 ).millis;
    }
}