From b0713330f2d80d7b5d9e4706b2b7699863c1a369 Mon Sep 17 00:00:00 2001 From: Mahmoud Adas Date: Wed, 30 Jan 2019 02:47:47 +0200 Subject: [PATCH] make std::chrono example more clear (#51) * make std::chrono example more clear --- CPP11.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CPP11.md b/CPP11.md index 1619f22..a5dcefa 100644 --- a/CPP11.md +++ b/CPP11.md @@ -719,7 +719,7 @@ start = std::chrono::steady_clock::now(); end = std::chrono::steady_clock::now(); std::chrono::duration elapsed_seconds = end - start; -elapsed_seconds.count(); // t number of seconds, represented as a `double` +double t = elapsed_seconds.count(); // t number of seconds, represented as a `double` ``` ### Tuples diff --git a/README.md b/README.md index b066879..8700a65 100644 --- a/README.md +++ b/README.md @@ -1305,7 +1305,7 @@ start = std::chrono::steady_clock::now(); end = std::chrono::steady_clock::now(); std::chrono::duration elapsed_seconds = end - start; -elapsed_seconds.count(); // t number of seconds, represented as a `double` +double t = elapsed_seconds.count(); // t number of seconds, represented as a `double` ``` ### Tuples