cputicker.cpp

来自「Visual C++下的界面设计」· C++ 代码 · 共 28 行

CPP
28
字号
// TITLE:
// High-Resolution Counter Class.
//
// VERSION:
// 1.0
//
// AUTHOR:
// Created by J.M.McGuiness, CompuServe ID 100627,630.
//            PJ Naughter,   pjn@indigo.ie
//
// DESCRIPTION:
// This file declares a class the wraps the Pentium-specific time stamp counter.
// This counter has a resolution in terms of PCLKS (processor clocks) so it can
// be used for direct instruction timings.
//
// VERSION HISTORY:
// 26/3/96 Creation of version 1.0
// 16/7/97 PJ Naughter,
//         A number of additions including:
//         Support for running on Windows NT
//         now uses the build-in 64 bit data type "__int64"
//         Improved diagnostic info thanks to the above
//         Usage of static variables to improve efficiency
//         Addition of a function which will convert from CPU ticks to seconds
//         Improved adhereance to the MFC coding style and standards
//
// LEGALITIES:
// Copyright 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?