Calculate the number of updates per seconds