NathanCheshire / Cyder

Multipurpose utility tool expressed using a custom JVM UI library built over Swing
GNU General Public License v3.0
11 stars 1 forks source link

Cyder Clock #97

Open NathanCheshire opened 2 years ago

NathanCheshire commented 2 years ago

There should be a synchronization package with a clocksync class that clocks throughout cyder can connect to and request a frequency for their update methods to be called. Should have an interface which classes implement and this will be passed to the clock so that it can invoke a call back method for the class that implements the interface can invoke.

NathanCheshire commented 2 years ago

This will be a whole package, we're getting to the point too where we might want to place specific util classes in specific packages if they'd make sense. For example we could move TimeUtil to a time package and put the watchdog there as well as CyderClock.

CyderClock will use a caller pattern where instances will request when to notify something such as on the hour, on the second, on the millisecond, on the 25th millisecond of each second, etc.