- Timestamp:
- Dec 5, 2011, 2:21:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/UDelay.pas
r118 r303 16 16 function GetEnabled:Boolean; 17 17 function GetOwerflowed:Boolean; 18 function GetRunning: Boolean; 18 19 procedure SetEnabled(const AValue: Boolean); 19 20 public … … 24 25 constructor Create; 25 26 property Overflowed: Boolean read GetOwerflowed; 27 property Running: Boolean read GetRunning; 26 28 property Enabled: Boolean read GetEnabled write SetEnabled; 27 29 end; … … 40 42 begin 41 43 Result := ((Now - StartTime) > (Duration * OneMillisecond)) and FEnabled; 44 end; 45 46 function TDelay.GetRunning: Boolean; 47 begin 48 Result := ((Now - StartTime) <= (Duration * OneMillisecond)) and FEnabled; 42 49 end; 43 50
Note:
See TracChangeset
for help on using the changeset viewer.