// ms svoid dm_changeTimerRate(O moduleOrID, int newRate) { O m = dm_getModule(moduleOrID); set(m, mainTimer := call(get(m, 'mainTimer), 'changeRate, newRate)); } // seconds svoid dm_changeTimerRate(O moduleOrID, double newRate) { dm_changeTimerRate(moduleOrID, toMS_int(newRate)); }
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1019300 |
Snippet name: | dm_changeTimerRate - if module has a field named mainTimer |
Eternal ID of this version: | #1019300/2 |
Text MD5: | a0c9b2890dd9d5dc6610db9564b159d6 |
Author: | stefan |
Category: | javax / modules |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-30 01:07:47 |
Source code size: | 299 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 298 / 355 |
Version history: | 1 change(s) |
Referenced in: | [show references] |