A virtual timer is set and immediately reset into a continuous loop. The performance is calculated by measuring the number of iterations after a second of continuous operations.