aboutsummaryrefslogtreecommitdiff
path: root/clock/src
Commit message (Collapse)AuthorAgeFilesLines
* Run clippy and fix all lints.Andreas Grois2021-11-291-1/+1
|
* Update pulse help string and add a few serde renames.Andreas Grois2021-11-291-1/+1
|
* Revert "Make runnable's run() method take a mutable self-reference."Andreas Grois2021-05-031-1/+1
| | | | | | | This reverts commit e1f0525e4e1dcf674aa7489042a06b7c7d671a2a. I've decided against having mutable self-references. It's a bit less convenient, but more sane. Also, the revert can be reverted any time, should the need arise.
* Make runnable's run() method take a mutable self-reference.Andreas Grois2021-05-021-1/+1
| | | | | Because there is no real reason speaking against it, and it makes plugin development a lot easier.
* Add options: List plugins, and get plugin help.Andreas Grois2021-04-261-0/+30
| | | | | | This fixes the TODO document's notes about not being able to get help for individual plugins, and about not having any means to list all loadable plugins.
* New clippy lints, better code...Andreas Grois2021-04-261-7/+7
|
* Reduce data type in clock to u64.Andreas Grois2021-04-221-7/+17
| | | | | This still gives us more than 8000 years of range, and uses a tiny bit less CPU time.
* Fix rounding issue in clock:Andreas Grois2021-04-221-2/+21
| | | | | | Sleep a millisecond if otherwise an update would get skipped. This happens if a refresh is requested in the last millisecond before the next synchronized update is expected.
* Change format for clock refresh rate once more.Andreas Grois2021-04-221-4/+3
| | | | It's now optional again, but needs its own block.
* Simplified clock config. It now only has 2 options for rates.Andreas Grois2021-04-221-28/+46
| | | | | | | Either it's updating every n seconds (float) but not synchronized to the actual UTC time, or it's updating synchronized, but with the limitation that the update rate is given as updates/(30 minutes). Explanation why this format was chosen is in the source file.
* Fix rounding errors. There's still a TODO:Andreas Grois2021-04-221-13/+12
| | | | | | | If the clock is started 1 ms before the configured time interval, it currently will skip one update. Because waiting times up to 30 minutes are planned to be supported, this can cause the clock to be quite wrong for quite some time...
* Simple synchronized clock (limited to full seconds or 1/x seconds)Andreas Grois2021-04-201-14/+35
|
* Clock now does something (but isn't done yet).Andreas Grois2021-04-191-4/+37
|
* First semi-working implementation.Andreas Grois2021-04-181-0/+87