mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-27 20:08:22 +01:00
7 lines
126 B
Smalltalk
7 lines
126 B
Smalltalk
|
Extension { #name : #Duration }
|
||
|
|
||
|
{ #category : #'*Diya' }
|
||
|
Duration >> asFloat [
|
||
|
^ seconds asFloat + (nanos / 1e9) asFloat
|
||
|
]
|