WithinPastMilliSeconds indicates True if two TDateTime values are within the specified AMilliSeconds number of milliseconds of each other.
WithinPastMilliSeconds is used to determine whether the date specified by ANow is within AMilliSeconds milliseconds of the date specified by AThen.
Declaration: function WithinPastMilliSeconds(const ANow, AThen: TDateTime; const AMilliSeconds: Int64): Boolean;
A simple example follows.