CriAtomExPerformanceInfo info; /* ライブラリの初期化 */ criAtomEx_Initialize(NULL, NULL, 0); /* パフォーマンスモニタ機能の追加 */ criAtomEx_AttachPerformanceMonitor(); /* パフォーマンスモニタのリセット */ criAtomEx_ResetPerformanceMonitor(); for(;;) { /* V同期待ち */ criFwSys_WaitVsync(); /* サーバー処理の実行 */ criAtomEx_ExecuteMain(); /* パフォーマンス情報の取得 */ criAtomEx_GetPerformanceInfo(&info); } /* パフォーマンスモニタ機能の解除 */ criAtomEx_DetachPerformanceMonitor(); /* ライブラリの終了 */ criAtomEx_Finalize();