Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Libfaketime | 2,258 | 1 | a month ago | 1 | February 27, 2018 | 17 | gpl-2.0 | C | ||
libfaketime modifies the system time for a single application | ||||||||||
Elevenclock | 1,878 | 16 hours ago | 5 | gpl-3.0 | Python | |||||
ElevenClock: Customize Windows 11 taskbar clock | ||||||||||
Truetime Android | 1,304 | 3 days ago | 35 | apache-2.0 | Kotlin | |||||
Android NTP time library. Get the true current time impervious to device clock time changes | ||||||||||
Time | 1,000 | a year ago | 76 | C++ | ||||||
Time library for Arduino | ||||||||||
Link | 924 | 3 months ago | 19 | other | C++ | |||||
Ableton Link | ||||||||||
Clock | 616 | 135 | 531 | a month ago | 15 | November 15, 2021 | 11 | mit | Go | |
Clock is a small library for mocking time in Go. | ||||||||||
Node Microtime | 565 | 4,077 | 664 | 8 months ago | 39 | June 09, 2022 | 1 | mit | C++ | |
Get the current time in microseconds | ||||||||||
Bemanalogclock | 488 | 11 | 6 years ago | 7 | April 28, 2016 | 2 | mit | Objective-C | ||
iOS library to create elegant, interactive clocks. | ||||||||||
React Datetime Picker | 463 | 92 | 41 | 8 hours ago | 48 | September 19, 2022 | 9 | mit | JavaScript | |
A datetime picker for your React app. | ||||||||||
Literature Clock | 444 | 21 days ago | 3 | other | R | |||||
Clock using time quotes from the literature, based on the work of Jaap Meijers |
CronScheduler
is an alternative to ScheduledThreadPoolExecutor
and Timer
with the following
advantages:
See this blog post
for more details and specific recommendations about when to use ScheduledThreadPoolExecutor
,
CronScheduler
, or other scheduling facilities.
Maven:
<dependency>
<groupId>io.timeandspace</groupId>
<artifactId>cron-scheduler</artifactId>
<version>0.1</version>
</dependency>
Gradle:
dependencies {
compile 'io.timeandspace:cron-scheduler:0.1'
}
Server-side usage example:
Duration syncPeriod = Duration.ofMinutes(1);
CronScheduler cron = CronScheduler.create(syncPeriod);
cron.scheduleAtFixedRateSkippingToLatest(0, 1, TimeUnit.MINUTES, runTimeMillis -> {
// Collect and send summary metrics to a remote monitoring system
});
Client-side usage example:
Duration oneHour = Duration.ofHours(1);
CronScheduler cron = CronScheduler.create(oneHour);
cron.scheduleAtRoundTimesInDaySkippingToLatest(oneHour, ZoneId.systemDefault(), runTimeMillis -> {
notifyUser("It's time to get up and make a short break from work!");
});
For drop-in replacement of ScheduledThreadPoolExecutor
and integration with existing code, there
is an adapter: cronScheduler.asScheduledExecutorService()
.
See Javadocs.