Time driven tunable laser based switching with common time reference