Free for PREMIUM members
Learn how to a build a cloud-first strategyRegister Now
class TwoMinuteTimer : System.Timers.Timer
/// <summary>Initializes a new timer that fires its Elapsed event ever 120 seconds.</summary>
/// <param name="myElapsedEvent">The method to call ever 2 minutes.</param>
public TwoMinuteTimer(ElapsedEventHandler myElapsedEvent)
: base(120000.0) // 120,000 milliseconds, aka 120 seconds/2 minutes for the interval.
this.Elapsed += myElapsedEvent;
Open in new window
Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!