benchmark: add functions to get cycle and frame count

To simplify the benchrarking process via the library API, this
change introduces two new functions, which are intended to
provide total cycle and frame count.
3 files changed