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: 9837

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: 3379

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: 6695

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: 8287

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: 49922

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: 138280

Time Duration

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

Read more
Tags: time
Views: 32987

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: 25216

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 shortcode 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 these three components.

Read more
Tags: time
Views: 9313

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 4914

Yesterday 7909

Week 12823

Month 87874

All 6108938

Currently are 200 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments