time

Calendar and Time-Zones in C++20: Time-Zones

This post concludes my introduction to the chrono extension in C++20. Today I present the time-zones functionality.

Read more
Tags: time
Views: 3570

Calendar and Time-Zones in C++20: Handling Calendar Dates

I presented in my last post "Calendar and Time Zone in C++20: Calendar Dates" the new calendar-related data types. Today, I go one step further and interact with them.

Read more
Tags: time
Views: 1355

Calendar and Time-Zones in C++20: Calendar Dates

A new type of the chrono extension in C++20 is a calendar date. C++20 offers various ways to create a calendar date and interact with them.

Read more
Tags: time
Views: 3582

Calendar and Time-Zones in C++20: Time of Day

With C++20, the chrono library from C++11 receives important additions. The most prominent ones are a calendar and time-zones support. But this is by far not all. C++20 gets new clocks, powerful formatting functionality for time durations, and a time of day type.

Read more
Tags: time
Views: 3879

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
Views: 44049

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
Views: 131406

Time Duration

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

Read more
Tags: time
Views: 29619

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
Views: 22968

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
Views: 8172

My Newest E-Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 7741

Yesterday 6384

Week 7741

Month 166172

All 5035486

Currently are 183 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments