How To Set Domain Controller Time Sync To Prevent Two Different Times?

I want all the workstation times to sync with the server. And also the domain controller time sync should be happening at regular intervals. Can you please provide with steps to do the same?
