mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-28 02:12:11 +01:00
53297: Test/A08time: allow %nU/%nS result to be 0
This commit is contained in:
parent
32cd93bcb0
commit
98e486fb56
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
2025-01-02 dana <dana@dana.is>
|
||||
|
||||
* 53297: Test/A08time.ztst: allow %nU/%nS result to be 0
|
||||
|
||||
* unposted: Completion/Zsh/Command/_zparseopts: update
|
||||
completion per workers/53260
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
( TIMEFMT='%nU %nS'; time (read -k3 -t0.1) )
|
||||
1:TIMEFMT %nU and %nS are limited to microsecond precision
|
||||
*?[1-9][0-9]#000ns [1-9][0-9]#000ns
|
||||
*?(0|[1-9][0-9]#000)ns (0|[1-9][0-9]#000)ns
|
||||
|
||||
# SECONDS (after - before) must be greater than the elapsed time, but not much
|
||||
# greater. 25% was picked arbitrarily as something that hopefully will prevent
|
||||
|
|
Loading…
Reference in a new issue