20#ifndef GEODE_CACHESTATISTICS_H_
21#define GEODE_CACHESTATISTICS_H_
26#include "internal/geode_globals.hpp"
50 using time_point = std::chrono::steady_clock::time_point;
100 time_point getLastModifiedSteadyTime()
const;
101 time_point getLastAccessedSteadyTime()
const;
104 virtual void setLastAccessedTime(time_point tp);
105 virtual void setLastModifiedTime(time_point tp);
107 std::atomic<time_point::duration::rep> last_accessed_;
108 std::atomic<time_point::duration::rep> last_modified_;
110 friend class LocalRegion;
Defines common statistical information for both the region and its entries.
Definition: CacheStatistics.hpp:48
virtual std::chrono::system_clock::time_point getLastModifiedTime() const
For an entry, returns the time that the entry's value was last modified.
virtual std::chrono::system_clock::time_point getLastAccessedTime() const
For an entry, returns the last time it was accessed via Region.get.