google / google/googletest

Need ability to compare chrono::time_points with precision

Open
#3,230 0 comments 7 reactions 1 assignee Claimed by @asoffer View on GitHub
Dominant language
C++
Stars
39.5k
Forks
10.9k
Avg merge
6d 13h
Merged PRs (30d)
1

Description

As c++20 gets a lot of improvements in chrono library, it would be great to get a way of comparing time_points like

```
using std::chrono;
system_clock::time_point t1, 2;
EXPECT_NEAR(t1, t2, nanoseconds{1})
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.