Write time log.

def write_time_log(logfile, time):
        """Write time log."""
        if os.path.exists(logfile):
            log_status = open(logfile, 'a', encoding='utf-8')
        else:
            log_status = open(logfile, 'w', encoding='utf-8')
            log_status.write('Function Name\tRead Time\tCompute Time\tWrite Time\tTotal Time\t\n')
        log_status.write('%s\t%.5f\t%.5f\t%.5f\t%.5f\t\n' % (time['name'], time['readt'],
                                                             time['computet'],
                                                             time['writet'],
                                                             time['totalt']))
        log_status.flush()
        log_status.close()