Add debug code to display the actual sample frequency
More accurate counter increments under Linux