unit Unit1;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br> Dialogs, StdCtrls;<br><br>type<br> TForm1 = class(TForm)<br> Button1: TButton;<br> procedure FormCreate(Sender: TObject);<br> procedure Button1Click(Sender: TObject);<br> private<br> { Private declarations }<br> public<br> { Public declarations }<br> end;<br><br>var<br> Form1: TForm1;<br> FirstTime: Cardinal;<br><br>implementation<br><br>{$R *.dfm}<br><br>procedure TForm1.FormCreate(Sender: TObject);<br>begin<br> FirstTime := GetTickCount div 1000;<br>end;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br> while ((GetTickCount div 1000) - (FirstTime) < 10) do Application.ProcessMessages;<br> Close;<br>end;<br><br>end.