QPerformanceTimer
"Profile" a block of C++ code with just one include file and two variable definitions.
"Profile" a block of C++ code with just one include file and two variable definitions.
Learn about the IReferenceClock interface, which can be used to program a timer with high resolution.
[Update] The issues raised by CodeGuru readers have been addressed. The article has been revised and new source code has been created.
Very useful set of time formatting routines that can easily be inserted into your C++ code
Calculate the date and time of equinoxes and solstices in a given year (not earlier than 4713 BC). Includes public domain time routine that converts Julian Day numbers to Gregorian and Julian calendar dates.