Skip to content

日志输出的秒和毫秒的时间差异问题 #328

Description

@xxuun

项目中时间戳的秒和毫秒部分分别使用 time() 和 gettimeofday() 获取,而这两个函数的结果是有差异的,导致日志中输出的时间会倒退。

参考 time() and gettimeofday() return different seconds

问题日志

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions