Author: Jonas Bilinkevicius
All I want to do is to read the system time of the computer, then read it again a
little later, and compare the times. I want hours, minutes, seconds and
milliseconds. I have looked into TimeStamp and GetSystemTime, but I just can't get
it to work. What should I do?
Answer:
1 var2 T0, T1: TDateTime;
3 ElapsedSeconds: Double;
4 begin5 T0 := Now;
6 { ... }7 T1 := Now;
8 ElapsedSeconds := 86400.0 * (T1 - T0);
9 end;