[exim-dev] [Bug 1172] New: should support highres timestamps

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-dev
Neue Treads: [exim-dev] [Bug 1172] should support highres timestamps, [exim-dev] [Bug 1172] should support highres timestamps, [exim-dev] [Bug 1172] should support highres timestamps, [exim-dev] [Bug 1172] should support highres timestamps, [exim-dev] [Bug 1172] should support highres timestamps
Betreff: [exim-dev] [Bug 1172] New: should support highres timestamps
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1172
           Summary: should support highres timestamps
           Product: Exim
           Version: 4.77
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: String expansion
        AssignedTo: nigel@???
        ReportedBy: jgh146exb@???
                CC: exim-dev@???



It's well time that we ought to be able to time operations to better precision
than one second.

Attached is a patch which adds an expansion variable $tod_epoch_l which uses
the gettimeofday call and concats the seconds and (zero-padded) microseconds.
What precision you actually get is up to the OS and underlying hardware. Note
that 64-bit eval (see wishlist item 1171) is wise to go with the use of the
wide values returned, even for subtracting one from another.

The patch is against 4.76 but applies cleanly to 4.77
I've only compiled/tested on x86_64 Linux (SL6).


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email