mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
21 lines
512 B
C
21 lines
512 B
C
//------------------------------------------------------------------------------
|
|
/*
|
|
Copyright (c) 2011-2013, OpenCoin, Inc.
|
|
*/
|
|
//==============================================================================
|
|
|
|
#ifndef RIPPLE_UPTIMETIMERADAPTER_H
|
|
#define RIPPLE_UPTIMETIMERADAPTER_H
|
|
|
|
/** Adapter providing uptime measurements for template classes.
|
|
*/
|
|
struct UptimeTimerAdapter
|
|
{
|
|
inline static int getElapsedSeconds ()
|
|
{
|
|
return UptimeTimer::getInstance ().getElapsedSeconds ();
|
|
}
|
|
};
|
|
|
|
#endif
|