MCPcopy Create free account
hub / github.com/Thalhammer/jwt-cpp / default_clock

Class default_clock

include/jwt-cpp/jwt.h:4164–4170  ·  view source on GitHub ↗

* Default clock class using std::chrono::system_clock as a backend. */

Source from the content-addressed store, hash-verified

4162 * Default clock class using std::chrono::system_clock as a backend.
4163 */
4164 struct default_clock {
4165 /**
4166 * Gets the current system time
4167 * \return time_point of the host system
4168 */
4169 date now() const { return date::clock::now(); }
4170 };
4171
4172 /**
4173 * Create a verifier using the default_clock.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected