Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to code for clock synchronization ?

Status
Not open for further replies.

swim

Programmer
Jul 1, 2002
22
US
Hi,

Any one knows how to code for PCs clock synchronization?
Thanks a lots!

Swim
 
If you by Syncronizing mean making an app that shows current time, then make a new Application. Put a Label and a Timer on it.

then use this to make label1 syncronize with your PC's time:

procedure TForm1.Timer1Timer(Sender: TObject);
begin
Label1.Caption := TimeToStr(Time);
end;

end.

Also remember to set Timer1's Enable to True, unless you want to make a button to enable it :)
Hope this is what you want!

//Ante0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top