diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2023-09-28 12:27:24 -0400 |
|---|---|---|
| committer | Tamir Duberstein <tamird@gmail.com> | 2023-09-28 17:21:56 -0400 |
| commit | b21eb4f046284040b8e91aff0fd1e7c5125864d1 (patch) | |
| tree | 3003d0ba19c316b8ad2b5b81d92f3b4fd8d42c11 /tests/codegen/src-hash-algorithm | |
| parent | f264d28f2cb941500d89e97a053ae96322c8ed86 (diff) | |
| download | rust-b21eb4f046284040b8e91aff0fd1e7c5125864d1.tar.gz rust-b21eb4f046284040b8e91aff0fd1e7c5125864d1.zip | |
time: use clock_gettime on macos
Replace `gettimeofday` with `clock_gettime(CLOCK_REALTIME)` on:
```
all(target_os = "macos", not(target_arch = "aarch64")),
target_os = "ios",
target_os = "watchos",
target_os = "tvos"
))]
```
`gettimeofday` was first used in
https://github.com/time-rs/time/commit/cc367edd953e72756ed6f0980918795c11e469b1
which predated the introduction of `clock_gettime` support in macOS
10.12 Sierra which became the minimum supported version in
58bbca958d917a89124da248735926f86c59a149.
Diffstat (limited to 'tests/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
