Libraryless. Click here for Pure Java version (10015L/55K).
1 | static Duration totalLengthOfTimestampRanges(Iterable<TimestampRange> l) {
|
2 | long sum = 0; |
3 | fOr (r : l) |
4 | sum += r.length(); |
5 | ret msToDuration(sum); |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1036429 |
| Snippet name: | totalLengthOfTimestampRanges |
| Eternal ID of this version: | #1036429/2 |
| Text MD5: | f2408201654ca68ab3a88b66baa811db |
| Transpilation MD5: | c029ee02156d80e7a92b5ea215f41470 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-12-11 22:43:08 |
| Source code size: | 159 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 411 / 527 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |