Add time matrix