using System;
namespace LeanCloud.Realtime.Internal
{
public interface IAVTimer
{
///
/// Start this timer.
///
void Start();
///
/// Stop this timer.
///
void Stop();
bool Enabled { get; set; }
///
/// The number of milliseconds between timer events.
///
/// The interval.
double Interval { get; set; }
///
/// 已经执行了多少次
///
long Executed { get; }
///
/// Occurs when elapsed.
///
event EventHandler Elapsed;
}
///
/// Timer event arguments.
///
public class TimerEventArgs : EventArgs
{
public TimerEventArgs(DateTime signalTime)
{
SignalTime = signalTime;
}
public DateTime SignalTime
{
get;
private set;
}
}
}