# interval **Repository Path**: ymofen/interval ## Basic Information - **Project Name**: interval - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-06 - **Last Updated**: 2025-11-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 说明 这是一个时间定时触发 # demo ````go ive := NewIntervalListEngine() // 确保每次只需会大于1s只需 ive.OpenInterval("t1", time.Second, func() { fmt.Println(time.Now().Format(time.RFC3339Nano)) }) // 确保每次执行都最接近0s,5s,10s,15s.. ive.OpenIntervalWithNextRunAt("t2", NextFixedInterval(time.Now(), time.Second*5), time.Second*5){ fmt.Println(time.Now().Format(time.RFC3339Nano)) }) ````