From 6b4e0e44398a292b4924392d2e66756fbe5269ec Mon Sep 17 00:00:00 2001 From: Morten Nobel-Joergensen Date: Tue, 31 Jul 2018 12:06:51 +0200 Subject: [PATCH] Add chrono --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 23ad9d4..6259ac4 100644 --- a/README.md +++ b/README.md @@ -511,8 +511,9 @@ auto from = // Get current time_point // ... do some work auto to = // Get current time_point high_resolution_clock::now(); -using ms = // Compute duration in milliseconds +using ms = // Define ms as floating point duration duration; + // Compute duration in milliseconds cout << duration_cast(to - from) .count() << "ms"; ```