greenplumn CWallClock 源码
greenplumn CWallClock 代码
文件路径:/src/backend/gporca/libgpos/include/gpos/common/CWallClock.h
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CWallClock.h
//
// @doc:
// A timer which records wall clock time;
//---------------------------------------------------------------------------
#ifndef GPOS_CWallClock_H
#define GPOS_CWallClock_H
#include "gpos/common/ITimer.h"
namespace gpos
{
//---------------------------------------------------------------------------
// @class:
// CWallClock
//
// @doc:
// Records wall clock time;
//
//---------------------------------------------------------------------------
class CWallClock : public ITimer
{
private:
// actual timer
TIMEVAL m_time;
public:
// ctor
CWallClock()
{
Restart();
}
// retrieve elapsed wall-clock time in micro-seconds
ULONG ElapsedUS() const override;
// restart timer
void Restart() override;
};
} // namespace gpos
#endif // !GPOS_CWallClock_H
// EOF
相关信息
相关文章
0
赞
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
7、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦