auto-matically inititialized
Probably the most frequently used feature of C++11 is auto. Thanks to auto, the compiler determines the type of a variable from its initializer. But what is the point of safety-critical software?
This author has not written his bio yet.
But we are proud to say that Rainer Grimm contributed 683 entries already.
Probably the most frequently used feature of C++11 is auto. Thanks to auto, the compiler determines the type of a variable from its initializer. But what is the point of safety-critical software?
After the myths, the facts will follow. Therefore, we leave the area of half-truth and untruth statements about C++.
As I started working in the embedded environment I was astonished that there was so much prejudice against the usage of C++ in embedded programming. Most are based on a wrong understanding of the programming language C++.
Bjarne Stroustrup’s FAQ makes it crystal clear. One of the design goals for C++11 was to make C++ even better for the embedded world.
The new time library is an important component of the threading interface. As well, as threads, locks, and condition variables understanding time. All four have in common that they can sleep, wait or block until a time point or for a duration.
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.
Time duration is the difference between two time points. It will be measured in time ticks.
The starting point (epoch) and the additional time duration define the time point. It consists of two components, clock and time duration.
A blog dealing with multithreading in modern C++ but not writing about the new time library is incomplete. Primarily 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, […]
After I’ve calculated in three different ways the sum of a std::vector I want to draw my conclusions.