add time diagram