aboutsummaryrefslogtreecommitdiff
path: root/src/xz/mytime.h (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-27xz: Add SIGTSTP handler for progress indicator time keeping.Lasse Collin1-0/+6
This way, if xz is stopped the elapsed time and estimated time remaining won't get confused by the amount of time spent in the stopped state. This raises SIGSTOP. It's not clear to me if this is the correct way. POSIX and glibc docs say that SIGTSTP shouldn't stop the process if it is orphaned but this commit doesn't attempt to handle that. Search for SIGTSTP in section 2.4.3: https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html
2020-01-26xz: Move flush_needed from mytime.h to file_pair struct in file_io.h.Lasse Collin1-4/+0
2019-05-11spellingAntoine Cœur1-1/+1
2013-07-04xz: Move some of the timing code into mytime.[hc].Lasse Collin1-0/+47
This switches units from microseconds to milliseconds. New clock_gettime(CLOCK_MONOTONIC) will be used if available. There is still a fallback to gettimeofday().