Skip to content

proposal: time.UnixNow() & time.UnixNowMs() #39837

@oguzyildizz

Description

@oguzyildizz

Hi, in our code we call time.Now() pretty extensively, enough to notice some overhead of calling it. Since we only need the unix timestamp, can we have a way to just get the unix timestamp without allocating unnecessary Time{} structs?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions