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

20
LINES

< > BotCompany Repo | #1025207 // Test FlexibleRateTimer, shortened (OK)

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (4904L/23K).

1  
!7
2  
3  
cmodule TestFlexibleRateTimer > DynPrintLog {
4  
  FlexibleRateTimer timer = new(1);
5  
  transient SimpleLiveValue<S> lvRate;
6  
  
7  
  start {
8  
    timer.verbose = true;
9  
    timer.onFrequencyChanged(r persistMe);
10  
    lvRate = lvFlexibleRateTimerFreq(timer);
11  
    timer.setRunnableAndStart(rEnter { print("blubb " + localTimeWithMS()) });
12  
  }
13  
  
14  
  visualize {
15  
    ret northAndCenterWithMargins(
16  
      withLabelLeftAndRight("Rate:", jLiveValueTextField_bothWays(lvRate), "Hz"), super.visualize());
17  
  }
18  
19  
  void cleanMeUp { cleanUp(timer); }
20  
}

Author comment

Began life as a copy of #1025194

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025207
Snippet name: Test FlexibleRateTimer, shortened (OK)
Eternal ID of this version: #1025207/3
Text MD5: def6462b84199ee59fc9ca3600b5201f
Transpilation MD5: 06dc08210faaa6c284ba13c34f17f418
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-13 14:18:15
Source code size: 551 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 278 / 408
Version history: 2 change(s)
Referenced in: [show references]