Libraryless. Click here for Pure Java version (10015L/55K).
static Duration totalLengthOfTimestampRanges(Iterable<TimestampRange> l) { long sum = 0; fOr (r : l) sum += r.length(); ret msToDuration(sum); }
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: | 133 / 191 |
Version history: | 1 change(s) |
Referenced in: | [show references] |