lgp
lgp

Reputation: 335

java - how do external changes to the system clock affect java util timer?

I've got a bunch of timertasks scheduled on a timer. Some of them are run once, others are fixedrate repeating tasks.

If the system clock is modified externally after things have been scheduled, how are the scheduled tasks affected?

Upvotes: 0

Views: 288

Answers (2)

paulsm4
paulsm4

Reputation: 121881

And of course if you mean "Time of Day" (like class Date), then the change to the system clock will be reflected in your objects.

Upvotes: 1

Chris Gregg
Chris Gregg

Reputation: 2382

If by "the system clock," you mean the clock that keeps human-time, then that is independent of any timers you are running in your app, unless they in turn depend specifically on the time of day.

Upvotes: 2

Related Questions