added time in data structure
Added time in data structure
added time sample for synchronization
set the same time for synchronization
added terminate, but did not work