unit SystemTime;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls;
type
TSysTime = class(TObject)
private
FStartDateTime : TDateTime;
protected
{ Protected declarations }
public
constructor Create; virtual;
destructor Destroy; override;
procedure SetOldTime;
published
{ Published declarations }
end;
implementation
constructor TSysTime.Create;
begin
FStartDateTime := Now;
end;
destructor TSysTime.Destroy;
var
NewTime : TSystemTime;
begin
DateTimeToSystemTime(FStartDateTime, NewTime);
SetSystemTime(NewTime);
end;
procedure TSysTime.SetOldTime;
var
NewTime : TSystemTime;