Skip to content

[[NSDate date] timeIntervalSince1970]会受系统时间影响,用CACurrentMediaTime()比较是不是好一点。 #14

@Vecige

Description

@Vecige

[[NSDate date] timeIntervalSince1970]会受系统时间影响,用CACurrentMediaTime()比较是不是好一点。

NSTimeInterval machTime = CACurrentMediaTime(), 如果rule.lastMachTime > machTime,就用machTime比较时间间隔。否则就用NSDate比较。像这样:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions