Skip to content

Commit 594a370

Browse files
updated documentation for Duration class
1 parent df9aa40 commit 594a370

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/compas_fab/robots/time_.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@
88

99

1010
class Duration(object):
11-
"""Duration consists of two integers: seconds and nanoseconds.
11+
"""Duration consists of two values: seconds (float) and nanoseconds (int).
12+
13+
The total number of seconds is the sum of these values.
14+
The decimal portion of the secs variable is converted to an integer and added to nsecs.
1215
1316
Attributes
1417
----------
15-
secs: int
16-
Integer representing number of seconds.
18+
secs: float
19+
Float representing number of seconds.
1720
nsecs: int
1821
Integer representing number of nanoseconds.
1922
"""

0 commit comments

Comments
 (0)