Updated timestamp functions to have ms resolution.