Hi Jan,
you should get rid of the global variable StartTime and there is no need to employ the TTimeStamp structure:
Delphi-Quellcode:
function TicksToStr(ticks: Cardinal): String;
begin
Result := FormatDateTime('hh"h":nn"m":ss"s":zzz"ms"', ticks / MSecsPerDay);
end;
Kind regards