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).

!7

cmodule TestFlexibleRateTimer > DynPrintLog {
  FlexibleRateTimer timer = new(1);
  transient SimpleLiveValue<S> lvRate;
  
  start {
    timer.verbose = true;
    timer.onFrequencyChanged(r persistMe);
    lvRate = lvFlexibleRateTimerFreq(timer);
    timer.setRunnableAndStart(rEnter { print("blubb " + localTimeWithMS()) });
  }
  
  visualize {
    ret northAndCenterWithMargins(
      withLabelLeftAndRight("Rate:", jLiveValueTextField_bothWays(lvRate), "Hz"), super.visualize());
  }

  void cleanMeUp { cleanUp(timer); }
}

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: 188 / 293
Version history: 2 change(s)
Referenced in: [show references]