bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Difference between EPOCHREALTIME and EPOCHSECONDS


From: Chet Ramey
Subject: Re: Difference between EPOCHREALTIME and EPOCHSECONDS
Date: Tue, 14 Apr 2020 15:50:36 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]