hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.5K
active users

Šimon Tóth

The std::chrono library added in C++11 enables simple time measurement.

The library provides two types for storing time information: time points and durations.

std::chrono supports the expected time manipulation operations, time literals (C++14), iostream and std::format formatting (C++20).

Compiler Explorer link: compiler-explorer.com/z/zvG5d4

@simontoth nit: you don't need \n with println

@vitaut That was for a neater output in the compiler explorer example. Didn't think about cleaning it up.