Hello Ann,

Sorry I was incomplete :(

> What will happen when someone will change the system time?

Then you are in trouble :(

> What does (TDataTime - TDataTime) return? miliseconds?

From the top of my head:

var
  BeginTime: TDateTime;
  EndTime: TDateTime;
begin
  AllocConsole; // open a console window
  BeginTime := Now();
  Sleep(60000);
  EndTime := Now();
  // print the time in the console
  WriteLn(integer('elap ', (EndTime - BeginTime) * 86400), ' seconds');

This should print 60 (seconds) since there are 86400 seconds in one day.
   
---
Rgds, Wilfried
http://www.mestdagh.biz


--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to