The Simple Counter Implementation in PHP

Posted on Posted in code, implementation, php

The following is a simple counter implementation that is based on PHP, if you have a small site of low traffic, or you just want to have a very simple counter implemented in your page, and that does not need to be highly accurate. It works by reading the value from the counter text file […]

The RDTSC Performance Timer written in C++

Posted on Posted in c / c++, code, code library, coding exercise, performance comparison

The RDTSC is the IA-32/IA-64 (or x86/x64) instruction that loads the current value of the processors’ time stamp into EDX:EAX registers. RDTSC is short for “Read Time-Stamp Counter”. It returns the number of clock cycles since last reset. The modern complier Visual Studio has implemented the compiler intrinsic so you don’t have to manually insert […]