summaryrefslogtreecommitdiffstats
path: root/include/jau
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-05-02 00:26:59 +0200
committerSven Gothel <[email protected]>2022-05-02 00:26:59 +0200
commit352d69ffbff5350452aab38b1774b1eeaeb8de4f (patch)
tree88648eeceba887f254b5afdcf4a06798b1b29174 /include/jau
parente7481f7de39a09b88895519fd9cf7f9bc71441e6 (diff)
Reduce fraction_timespec conversion ctor implicit example
Diffstat (limited to 'include/jau')
-rw-r--r--include/jau/fraction_type.hpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/jau/fraction_type.hpp b/include/jau/fraction_type.hpp
index a1560bc..e125671 100644
--- a/include/jau/fraction_type.hpp
+++ b/include/jau/fraction_type.hpp
@@ -849,11 +849,7 @@ namespace jau {
* Example without overflow check and implicit fraction_i64 conversion to fraction_timespec:
* <pre>
fraction_i64 duration = 10_ms;
- bool overflow = false;
const fraction_timespec timeout_time = getMonotonicTime() + duration;
- if( overflow ) {
- return; // bail out
- }
* </pre>
*
* Example with overflow check for potential durations > 292 years and explicit fraction_i64 conversion to fraction_timespec: