[MacPorts] #61691: legacy-support: add clock_gettime_nsec_np and CLOCK_UPTIME_RAW
MacPorts
noreply at macports.org
Mon Jan 20 13:30:54 UTC 2025
#61691: legacy-support: add clock_gettime_nsec_np and CLOCK_UPTIME_RAW
-----------------------------------------+-----------------------
Reporter: ryandesign | Owner: fhgwright
Type: enhancement | Status: closed
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: fixed | Keywords:
Port: legacy-support, php-xdebug |
-----------------------------------------+-----------------------
Changes (by fhgwright):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"8e3a750ba4e6f238d476c353c39ae6a549e08605/macports-legacy-
support" 8e3a750ba4e6f238d476c353c39ae6a549e08605/macports-legacy-support]
(master):
{{{
#!ConfigurableCommitTicketReference repository="macports-legacy-support"
revision="8e3a750ba4e6f238d476c353c39ae6a549e08605"
Implement interim clock_gettime_nsec_np().
Closes: https://trac.macports.org/ticket/61691
Since a proper implementation of clock_gettime_nsec_np() would be
significant work, and should be accompanied by some needed rework of
time.c and test_time.c in general, for now we just provide a wrapper
around clock_gettime(). This is functionally correct but suboptimal
in performance.
It also cleans up the scale factors, converting the fairly pointless
THOUSAND to a number, removing the unused MILLIONS, and replacing
BILLIONS with separate 32- and 64-bit versions, both now explictly
unsigned.
It also cleans up some include issues.
TESTED:
Passes all tests on all platforms, including added test.
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61691#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list