Expose last seen time.

Also expose last seen time for token bucket.
This commit is contained in:
Mark Stemm 2017-04-27 12:03:02 -07:00
parent c066be3905
commit dafc4c2b88
2 changed files with 8 additions and 0 deletions

View File

@ -84,3 +84,8 @@ double token_bucket::get_tokens()
{
return m_tokens;
}
uint64_t token_bucket::get_last_seen()
{
return m_last_seen;
}

View File

@ -42,6 +42,9 @@ public:
// Return the current number of tokens available
double get_tokens();
// Return the last time someone tried to claim a token.
uint64_t get_last_seen();
private:
//