28 ret = systemHeap.
Open ();
29 if (!ret)
return FALSE;
32 if (!ret)
return FALSE;
34 for (
int i = 0; i < 4; i++)
36 for (
int j = 0; j < 10; j++)
39 if (count == -1)
return FALSE;
41 int size =
static_cast<int>(pow (8, j));
50 ret = this->
Measure (size, count, freight);
57 ret = this->
Measure (size, count, freight);
64 ret = this->
Measure (size, count, freight);
71 ret = this->
Measure (size, count, freight);
102 double count_per_msec = count / msec;
103 double msec_per_count = msec / count;
104 _console.
Format (_T (
"ratio %8.2f[count/msec] %8.2f[msec/count]\n"), count_per_msec, msec_per_count);
malloc/realloc/freeを使った標準的なメモリクラス
DWORD APIENTRY Write(LPCTSTR lpctszString) const
コンソールに文字を出力します。
VOID APIENTRY Format(LPCTSTR format,...) const
コンソールに文字を出力します。
BOOL APIENTRY Create(SIZE_T initialSize=0, SIZE_T maximumSize=0, DWORD dwOptions=0)
ヒープ領域の取得
BOOL APIENTRY Open()
システムヒープ領域の取得
static BOOL APIENTRY ReadIniFile(LPCTSTR lpctszIniFile, LPCTSTR lpctszSection, LPCTSTR lpctszKeyword, TString &response)
設定フィルの読み込み
VOID APIENTRY Clear()
格納領域の開放
VOID APIENTRY New(size_t size)
事前のメモリ取得