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 […]

The Simple Mortgage Calculator Implemented in C/C++, Javascript and MySQL

Posted on Posted in c / c++, javascript, mysql, tools / utilities

Although there are many available mortgage calculators out there, the principle of a simple mortgage calculator is really simple, which is based on the following math formula. where, the c is the monthly repayment, r is the monthly interests (which is the one-twelveth of the yearly interests). P is the total money borrowed. N is […]