Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1015618 // elapsedSeconds - uses sysNow if supplying a long

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4008L/23K).

static double elapsedSeconds(long time) {
  ret toSeconds(sysNow()-time);
}

static double elapsedSeconds(Timestamp ts) {
  ret ts == null ? Double.NaN : toSeconds(now()-ts.date);
}

Author comment

Began life as a copy of #1015518

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1015618
Snippet name: elapsedSeconds - uses sysNow if supplying a long
Eternal ID of this version: #1015618/4
Text MD5: 7520ce8cffba07a0bb70cb43b5ea2f37
Transpilation MD5: 3d2daf936f1e93d34d56d74ba6418203
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-20 02:09:33
Source code size: 187 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 439 / 571
Version history: 3 change(s)
Referenced in: [show references]