Added time synchronization to java