I need to measure the time it takes for my algorithm to make some computation. So I do:
t1 := GetSystemTime;
t2 := GetSystemTime;
writeln('My program took ', t2 - t1, 'seconds to run');
How exactly do I get the time ?
Are variables t1 and t2 integers or longints ?