her er koden.. sæt det i en Timer:
var
starttime: cardinal;
seconds: cardinal;
hours: cardinal;
minutes: cardinal;
remseconds: cardinal;
begin
starttime :=GetTickcount();
seconds:= starttime div 1000;
hours:= seconds div 3600;
minutes:= (seconds - (hours * 3600)) div 60;
remseconds:= (seconds - ((minutes * 60) + (hours * 3600)));
Edit1.text:= inttostr(hours) + ':' + inttostr(minutes) + '.' + inttostr(remseconds);
end;
Jeg bruger 1 edit boks istedet for en label!
Hilsen CHadi
Mit lykketal er 2959