Libraryless. Click here for Pure Java version (4221L/24K).
1 | sbool dm_hadUserActivityInLastNMinutes(double minutes) { |
2 | double seconds = cast dm_requireAndCall("#1020622/UserActivityDetector", 'secondsSinceLastActivity); |
3 | bool activity = seconds <= minutes*60; |
4 | printVars(+seconds, +minutes, +activity); |
5 | ret activity; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1023281 |
Snippet name: | dm_hadUserActivityInLastNMinutes |
Eternal ID of this version: | #1023281/3 |
Text MD5: | b1c506cb4a5cdf44f2420c33d1a8b170 |
Transpilation MD5: | 17af58e7caa3c47501c92e998574c3c1 |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-09-23 07:47:59 |
Source code size: | 267 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 281 / 373 |
Version history: | 2 change(s) |
Referenced in: | [show references] |