added time_precision to write calls