time

Sleep and wait

The new time library is an important component of the threading interface. As well threads, locks, condition variables as future have an understanding of time. All four have in common that they can sleep, wait or block until a time point or for a time duration.

Read more
Tags: time
Comments 1Views: 1527

The Three Clocks

A clock consists of a starting point and a time tick. C++ offers with std::chrono::system_clock, std::chrono::steady_clock, and std::chrono::high_resolution_clock three clocks.

Read more
Tags: time
Comments 2Views: 1608

Time Duration

A time duration is the difference between two time points. It will be measured in time ticks.

Read more
Tags: time
Comments 3Views: 1315

Time Point

The time point is defined by the starting point (epoch) and the additional time duration. It consists of the two components clock and time duration.

Read more
Tags: time
Comments 2Views: 1383

The time Library

A blog, dealing with multithreading in modern C++ but not writing about the new time library is not complete. Especially, because I often used the time library in my posts to measure the performance of short code snippets. Therefore, I give in this post an overview of the components of the time library: time point, time duration, and clock. I will write in additional posts about each of this three components.

Read more
Tags: time
Comments 1Views: 1175

My Newest E-Book

Latest comments

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 196

All 329730

Currently are 163 guests and no members online