How do I synchronize clocks between Linux and Windows?
Solution 1:
Make both machines be NTP clients. That should make their clocks correct to within a rather short interval, and is already developed, tested, and available.
According to the Wikipedia page on NTP, you should expect around 10 ms over Internet, far less if you have a local time server on your LAN, which should be quite easy to set up.
Solution 2:
Probably belongs on serverfault, but you're looking for ntp (Network Time Protocol). The daemon on linux is ntpd, and I think it's "Windows Time Service Tools" on windows.
Solution 3:
Just something to watch out for...may not practically apply if the test you're doing is fairly short in duration:
Be aware of the time synchronization interval, especially if the Windows client is in a domain (where the domain source and interval would override anything you set manually for your test).
It might muddy your results if you sync the times manually and one or both of the machines being measured re-synch their times from another source while the benchmark is running.
Solution 4:
I think Samba may act as a time server which can be used with net time
on Windows clients.