Skip to content

注释里的时间单位typo: "纳秒" -> "微秒" #33

@KathyW666

Description

@KathyW666

_timeval.h 中 tv_usec 为 microseconds
https://opensource.apple.com/source/xnu/xnu-6153.41.3/bsd/sys/_types/_timeval.h.auto.html

Issue line:

uint64_t costTime; //单位:纳秒(百万分之一秒)

uint64_t time = (now.tv_sec % 1000) * 1000000 + now.tv_usec;

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