Time synchronization of two computers

Take a look at PTP, it can achieve microsecond accuracy over LAN.

Alternatively, you could buy a pair of GPS receivers which generate a tick interrupt every second. GPS time precision is about 40 ns.