Adds a new argument for the class constructor as well as a new macro to support printing the rolling average of a number of samples intead of the total average. This can be useful for getting a sample of an average durations in functions that are continually running, e.g. the main event loop. Pull Request: https://projects.blender.org/blender/blender/pulls/136530