Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16134

Re: Difference between EPOCHREALTIME and EPOCHSECONDS

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Difference between EPOCHREALTIME and EPOCHSECONDS
Date 2020-04-14 15:50 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.274.1586893853.3066.bug-bash@gnu.org> (permalink)
References <E1jOH8S-0001Pc-VE@medium.hauri> <4ffdb354-3a55-e588-0d53-b170b6c0ca4f@case.edu> <20200414194334.b18fba820739b99e92c863be@schrader-schulte.de> <e642d18e-d166-2c1d-c5d7-d32bfb175651@case.edu>

Show all headers | View raw


On 4/14/20 1:43 PM, Martin Schulte wrote:
> Hello Chet, hello Felix, hello all!
> 
>>> Bash Version: 5.0
>>> Patch Level: 16
>>> Release Status: release
>>>
>>> Description:
>>>         Integer part of $EPOCHREALTIME could increase more than 8000
>>> microseconds before $EPOCHSECONDS
>>
>> It's the difference between time() and gettimeofday().

EPOCHSECONDS is the analog of SECONDS, with the difference being the
starting point.

EPOCHREALTIME is supposed to be the thing you use if you want additional
precision than seconds granularity.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Difference between EPOCHREALTIME and EPOCHSECONDS Chet Ramey <chet.ramey@case.edu> - 2020-04-14 15:50 -0400

csiph-web