FluentScheduler
FluentScheduler copied to clipboard
Time drift.
The time starts to drift , in this example I want the job to fire once every minute, but as you can see the milliseconds start to accumulate.
JobManager.Initialize();
Console.WriteLine($"Scheduled: {DateTime.Now:O}");
Action p = () => Console.WriteLine($"Fired: {DateTime.Now:O}");
JobManager.AddJob(
() => JobManager.AddJob(p,
s => s.ToRunEvery(1).Minutes()
)
,
s => s.ToRunOnceAt(DateTime.Now.Hour, DateTime.Now.Minute + 1)
) ;
Console.ReadKey(true);
}
Duplicate of #261