Basic, self-contained example of synchronizing two clocks