mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move ./modules to ./src
This commit is contained in:
20
src/ripple_data/utility/ripple_UptimeTimerAdapter.h
Normal file
20
src/ripple_data/utility/ripple_UptimeTimerAdapter.h
Normal file
@@ -0,0 +1,20 @@
|
||||
//------------------------------------------------------------------------------
|
||||
/*
|
||||
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
|
||||
Reference in New Issue
Block a user