|
@@ -183,7 +183,7 @@ type
|
|
|
|
|
|
TScheduleMode = (smRunOnce, smRepeatMode);
|
|
TScheduleMode = (smRunOnce, smRepeatMode);
|
|
|
|
|
|
- TTimeMeasure = (tmDays, tmHours, tmMinutes, tmSeconds);
|
|
|
|
|
|
+ TTimeMeasure = (tmDays, tmHours, tmMinutes, tmSeconds, tmMilliseconds);
|
|
|
|
|
|
ITask = interface
|
|
ITask = interface
|
|
['{0182FD36-5A7C-4C00-BBF8-7CFB1E3F9BB1}']
|
|
['{0182FD36-5A7C-4C00-BBF8-7CFB1E3F9BB1}']
|
|
@@ -1401,6 +1401,7 @@ begin
|
|
tmHours : fNextExecution := IncHour(fNextExecution,fTimeInterval);
|
|
tmHours : fNextExecution := IncHour(fNextExecution,fTimeInterval);
|
|
tmMinutes : fNextExecution := IncMinute(fNextExecution,fTimeInterval);
|
|
tmMinutes : fNextExecution := IncMinute(fNextExecution,fTimeInterval);
|
|
tmSeconds : fNextExecution := IncSecond(fNextExecution,fTimeInterval);
|
|
tmSeconds : fNextExecution := IncSecond(fNextExecution,fTimeInterval);
|
|
|
|
+ tmMilliseconds : fNextExecution := IncMilliSecond(fNextExecution, fTimeInterval);
|
|
end;
|
|
end;
|
|
|
|
|
|
if Now() > fNextExecution then Result := False //avoid execution if system time was altered
|
|
if Now() > fNextExecution then Result := False //avoid execution if system time was altered
|