# std.cache_hash: don't trust mtime granularity to be better than 1ms · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ce8b9c0c5cdbe4161952e6f2aa875f722949d4cb)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ce8b9c0c5cdbe4161952e6f2aa875f722949d4cb

Requested commit: ce8b9c0c5cdbe4161952e6f2aa875f722949d4cb

Commit: ce8b9c0c5cdbe4161952e6f2aa875f722949d4cb

Tree: dfe8510900d080451cc4a20ce440fb67e311fa69

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.cache_hash: don't trust mtime granularity to be better than 1ms

I empirically observed mtime not changing when rapidly writing the same
file name within the same millisecond of wall clock time, despite the
mtime field having nanosecond precision.

I believe this fixes the CI test failures.

```

## Parents

- [27cb23cbc5fe35d0eae8494006ba93111bd2bde6](https://git.cafe/gitcafe/zig/commit/27cb23cbc5fe35d0eae8494006ba93111bd2bde6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ce8b9c0c5cdbe4161952e6f2aa875f722949d4cb?format=markdown)
