I need to get the same time on all Instances of my program. How do I do that. DateTime.Now is not accurate(is different on different hardware) enough, I need to get the Time down to 100 ms difference-precision.
Asked
Active
Viewed 227 times
0
-
2It would really help if you explained [why you think you need this](https://meta.stackexchange.com/questions/66377/). – Dour High Arch Apr 01 '19 at 18:30
1 Answers
1
You don't want it read locally from each computer, as you don't know that each PC's clock is perfectly in sync (and you can see that they aren't).
So you have two options:
- Write something on each computer to maintain precise time.
- Get a web based time and all of your computers will be reading the same data. Here is an example from SO: How to get DateTime from the internet?

Ryan
- 314
- 1
- 10