lst-0937-book.cpp
// https://godbolt.org/z/vTx4cdqzq
#include <chrono>
#include <iostream>
void showDuration(std::chrono::milliseconds dur) {
std::cout << dur.count() << "ms\n";
}
int main() {
using namespace std::chrono;
auto x = 2s;
auto y = 3ms;
showDuration(x + y); // Ausgabe: 2003ms
showDuration(x - y); // Ausgabe: 1997ms
}