Hardware and Software Timers

  • Andrey Akinshin


There are a lot of useful benchmarking tools that can simplify your benchmarking life, but they are usually optional. You can use them or not depending on your preferences. But there is one tool that is essential for benchmarking: the timestamping API (methods that help you to get the current time). You can’t write a benchmark if you can’t get a timestamp. It’s critical to understand what kind of APIs you have on your system, how these APIs work internally, and what the main properties of these APIs are. Of course, you can write a benchmark without this knowledge. However, in-depth understanding of the hardware and software timers allows you to design better benchmarks, control the accuracy level, and avoid timestamping pitfalls. In this chapter, we are going to cover the following topics:

Copyright information

© Andrey Akinshin 2019

Authors and Affiliations

  • Andrey Akinshin
    • 1
  1. 1.Saint PetersburgRussia

Personalised recommendations