aboutsummaryrefslogtreecommitdiff
path: root/src/xz/mytime.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-02-05xz: Set the --flush-timeout deadline when the first input byte arrives.Lasse Collin1-1/+0
xz --flush-timeout=2000, old version: 1. xz is started. The next flush will happen after two seconds. 2. No input for one second. 3. A burst of a few kilobytes of input. 4. No input for one second. 5. Two seconds have passed and flushing starts. The first second counted towards the flush-timeout even though there was no pending data. This can cause flushing to occur more often than needed. xz --flush-timeout=2000, after this commit: 1. xz is started. 2. No input for one second. 3. A burst of a few kilobytes of input. The next flush will happen after two seconds counted from the time when the first bytes of the burst were read. 4. No input for one second. 5. No input for another second. 6. Two seconds have passed and flushing starts.
2020-02-05xz: Move flush_needed from mytime.h to file_pair struct in file_io.h.Lasse Collin1-3/+0
2019-12-31xz: Fix some of the warnings from -Wsign-conversion.Lasse Collin1-2/+2
2013-07-04xz: Move some of the timing code into mytime.[hc].Lasse Collin1-0/+89
This switches units from microseconds to milliseconds. New clock_gettime(CLOCK_MONOTONIC) will be used if available. There is still a fallback to gettimeofday().