可以使用定时线程 用System.Threading.Timer创建
using system.Threadingusing system.Threading.Tasks;for(){Thread.Sleep(5000);//更新速率为5秒}