make std::chrono example more clear (#51)

* make std::chrono example more clear
This commit is contained in:
Mahmoud Adas
2019-01-30 02:47:47 +02:00
committed by Anthony Calandra
parent b1b0d0e3cc
commit b0713330f2
2 changed files with 2 additions and 2 deletions

View File

@@ -719,7 +719,7 @@ start = std::chrono::steady_clock::now();
end = std::chrono::steady_clock::now();
std::chrono::duration<double> 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

View File

@@ -1305,7 +1305,7 @@ start = std::chrono::steady_clock::now();
end = std::chrono::steady_clock::now();
std::chrono::duration<double> 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