We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 242e53d + 18d9db3 commit 4c01f3dCopy full SHA for 4c01f3d
lib/CIndexStoreDB/CIndexStoreDB.cpp
@@ -679,8 +679,7 @@ indexstoredb_timestamp_of_latest_unit_for_file(
679
// https://en.cppreference.com/w/cpp/chrono/system_clock most implementations use Unix Time.
680
// Since C++20, system_clock is defined to measure time since 1/1/1970.
681
// We rely on `time_since_epoch` always returning the nanoseconds since 1/1/1970.
682
- auto nanosecondsSinceEpoch = timePoint->time_since_epoch().count();
683
- return static_cast<double>(nanosecondsSinceEpoch) / 1000 / 1000 / 1000;
+ return timePoint->time_since_epoch().count();
684
}
685
return 0;
686
0 commit comments