small edits to time-delay C code