mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
enh(File): Linux, macOS: microsecond precision for file times (create and modification time).
This commit is contained in:
@@ -135,7 +135,7 @@ public:
|
||||
/// (100 nanosecond intervals since midnight,
|
||||
/// October 15, 1582).
|
||||
|
||||
static TimeDiff resolution();
|
||||
static constexpr TimeDiff resolution();
|
||||
/// Returns the resolution in units per second.
|
||||
/// Since the timestamp has microsecond resolution,
|
||||
/// the returned value is always 1000000.
|
||||
@@ -254,7 +254,7 @@ inline bool Timestamp::isElapsed(Timestamp::TimeDiff interval) const
|
||||
}
|
||||
|
||||
|
||||
inline Timestamp::TimeDiff Timestamp::resolution()
|
||||
inline constexpr Timestamp::TimeDiff Timestamp::resolution()
|
||||
{
|
||||
return 1000000;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user