1 | // ms |
2 | svoid dm_changeTimerRate(O moduleOrID, int newRate) { |
3 | O m = dm_getModule(moduleOrID); |
4 | set(m, mainTimer := call(get(m, 'mainTimer), 'changeRate, newRate)); |
5 | } |
6 | |
7 | // seconds |
8 | svoid dm_changeTimerRate(O moduleOrID, double newRate) { |
9 | dm_changeTimerRate(moduleOrID, toMS_int(newRate)); |
10 | } |
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: | 299 / 357 |
Version history: | 1 change(s) |
Referenced in: | [show references] |