15 #if !(defined(HAVE_CLOCK_GETTIME) && HAVE_DECL_CLOCK_MONOTONIC)
16 # include <sys/time.h>
32 #if defined(HAVE_CLOCK_GETTIME) && HAVE_DECL_CLOCK_MONOTONIC
36 static clockid_t clk_id = CLOCK_MONOTONIC;
38 while (clock_gettime(clk_id, &
tv))
39 clk_id = CLOCK_REALTIME;
enum operation_mode opt_mode
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval tv
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog gettimeofday
uint64_t mytime_get_elapsed(void)
Get the number of milliseconds since the operation started.
static uint64_t start_time
uint64_t opt_flush_timeout
Number of milliseconds to between LZMA_SYNC_FLUSHes.
static uint64_t mytime_now(void)
Get the current time as milliseconds.
int mytime_get_flush_timeout(void)
Get the number of milliseconds until the next flush.
void mytime_set_start_time(void)
Store the time when (de)compression was started.
void mytime_set_flush_time(void)
Store the time of when compressor was flushed.
static uint64_t next_flush
Common includes, definitions, and prototypes.