Alternate
e697dbe9c5997e35395fe158628dd8c5209481da
for Visual Studio 2022 and Windows 11.
読み取り中…
検索中…
一致する文字列を見つけられません
QueryPerformance.h
[詳解]
1
// ----------------------------------------------------------------------------
6
7
#pragma once
8
9
#include "
WindowsLibrary.h
"
10
11
namespace
alt
12
{
15
class
DLL_DECLSPEC
QueryPerformance
:
public
WindowsLibrary
16
{
17
public
:
19
APIENTRY
QueryPerformance
();
20
22
APIENTRY
~QueryPerformance
() {};
23
25
VOID APIENTRY Start ();
26
28
VOID APIENTRY Stop ();
29
33
double
APIENTRY PastTime ()
const
;
34
36
LARGE_INTEGER APIENTRY
GetStartTick
()
const
{
return
_startTick; };
37
39
LARGE_INTEGER APIENTRY
GetStopTick
()
const
{
return
_stopTick; };
40
42
LARGE_INTEGER APIENTRY
GetFrequency
()
const
{
return
_frequency; };
43
44
private
:
46
LARGE_INTEGER
_startTick
;
47
49
LARGE_INTEGER
_stopTick
;
50
52
LARGE_INTEGER
_frequency
;
53
};
54
}
DLL_DECLSPEC
#define DLL_DECLSPEC
Definition:
framework.h:17
WindowsLibrary.h
WindowsAPIを集約したプロジェクトファイル
alt::QueryPerformance
高分解能時間計測クラス
Definition:
QueryPerformance.h:16
alt::QueryPerformance::GetFrequency
LARGE_INTEGER APIENTRY GetFrequency() const
現在のタイマー分解能を取得します。
Definition:
QueryPerformance.h:42
alt::QueryPerformance::_frequency
LARGE_INTEGER _frequency
現在のタイマー分解能
Definition:
QueryPerformance.h:52
alt::QueryPerformance::GetStopTick
LARGE_INTEGER APIENTRY GetStopTick() const
Stop()時のカウンター値を取得します。
Definition:
QueryPerformance.h:39
alt::QueryPerformance::_startTick
LARGE_INTEGER _startTick
開始時タイマー値
Definition:
QueryPerformance.h:46
alt::QueryPerformance::GetStartTick
LARGE_INTEGER APIENTRY GetStartTick() const
Start()時のカウンター値を取得します。
Definition:
QueryPerformance.h:36
alt::QueryPerformance::_stopTick
LARGE_INTEGER _stopTick
終了時タイマー値
Definition:
QueryPerformance.h:49
alt::QueryPerformance::~QueryPerformance
APIENTRY ~QueryPerformance()
デストラクタ
Definition:
QueryPerformance.h:22
alt::WindowsLibrary
プロジェクト共通基底クラス
Definition:
WindowsLibrary.h:34
alt
Definition:
DBLibrary.h:12
WindowsLibrary
QueryPerformance.h
構築:
1.9.6