mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-29 03:31:01 +01:00
53257: use monotonic clock where appropriate
update the following features to use the monotonic clock for calculating time deltas and intervals: * MAILCHECK parameter * PERIOD parameter * SECONDS parameter * %(nS.t.f) prompt-expansion sequence * time built-in's elapsed time and cpu % values * zsh/zftp ZFTP_TMOUT parameter * zsh/zprof timings also use CLOCK_MONOTONIC_RAW instead of CLOCK_MONOTONIC on macOS
This commit is contained in:
parent
7798fd88ac
commit
6bb792dba8
18 changed files with 225 additions and 92 deletions
|
|
@ -342,8 +342,7 @@ wait_for_processes(void)
|
|||
zwarn("job can't be suspended");
|
||||
} else {
|
||||
#if defined(HAVE_WAIT3) && defined(HAVE_GETRUSAGE)
|
||||
struct timezone dummy_tz;
|
||||
gettimeofday(&pn->endtime, &dummy_tz);
|
||||
zgettime_monotonic_if_available(&pn->endtime);
|
||||
#ifdef WIFCONTINUED
|
||||
if (WIFCONTINUED(status))
|
||||
pn->status = SP_RUNNING;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue