1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// ---------------------------------------------------------------------------
// Copyright: (c) 2022 ff. Michael Amrhein (michael@adrhinum.de)
// License: This program is part of a larger application. For license
// details please read the file LICENSE.TXT provided together
// with the application.
// ---------------------------------------------------------------------------
// $Source: src/duration.rs $
// $Revision: 2022-04-16T08:18:48+02:00 $
//! Definition of basic quantity `Duration`.
use crate*;
/// Duration: 'what a clock reads'
///
/// Reference unit: Second ('s')
///
/// Predefined units:
///
/// | Symbol | Name | Definition | Equivalent in 's' |
/// |--------|-----------------------|-------------------|---------------------|
/// | ns | Nanosecond | 0.000000001·s | 0.000000001 |
/// | µs | Microsecond | 0.000001·s | 0.000001 |
/// | ms | Millisecond | 0.001·s | 0.001 |
/// | min | Minute | 60·s | 60 |
/// | h | Hour | 60·min | 3600 |
/// | d | Day | 24·h | 86400 |