mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
xz: Add a comment clarifying the use of start_time in mytime.c.
This commit is contained in:
parent
912af91b10
commit
b8bce89be7
1 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,11 @@
|
||||||
|
|
||||||
uint64_t opt_flush_timeout = 0;
|
uint64_t opt_flush_timeout = 0;
|
||||||
|
|
||||||
|
// The start_time variable will not represent the actual start time
|
||||||
|
// if mytime_sigtstp_handler() executes. The signal handler measures
|
||||||
|
// the amount of time spent stopped and adds it to start_time.
|
||||||
|
// So, care must be taken in the future if the actual start time needs
|
||||||
|
// to be displayed for any reason.
|
||||||
#ifdef USE_SIGTSTP_HANDLER
|
#ifdef USE_SIGTSTP_HANDLER
|
||||||
static volatile uint64_t start_time;
|
static volatile uint64_t start_time;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue