Time transformation for delay differential equations