Closed lailongwei closed 11 months ago
GetTimeOfHour()
GetIntervalToTimeOfHour()
Hourly Timer
IsCrossedHour()
GetIntervalToXXX()
IsCrossedXXX()
operator%()
operator%=()
LLBC_TimeSpan
DayOfWeek
小驼峰
大驼峰
LLBC_Time
GetTimeOfHour()
支持:以让业务可更快速获得“当前时间在小时内的偏移”GetIntervalToTimeOfHour()
支持:以让业务快速取得离最近一个小时内时间间隔,以更快速启动Hourly Timer
IsCrossedHour()
支持:以让业务可以进行跨小时的逻辑判断GetIntervalToXXX()
实现,只保留一处实现IsCrossedXXX()
实现,只保留一处实现IsCrossedXXX()
性能优化:在简化代码同时,进行极致性能优化,减少不必要的计算开销LLBC_TimeSpan
operator%()
、operator%=()
支持扩展, 支持LLBC_TimeSpan
类型的divisiorLLBC_TimeConst
DayOfWeek
字符串描述支持小驼峰
->大驼峰