Skip to content

timex: macro names are misleading #4211

@miri64

Description

@miri64

Am I the only one that thinks the name of SEC_IN_USEC, SEC_IN_MS, MS_IN_USEC, and USEC_IN_NS are somewhat missleading?

  1. They are inconsistent in itself. Some abbreviate "seconds" with SEC, some with S
  2. Their values reflect the opposite of their name: there are 1000000 microseconds in a second, not 1000000 seconds in a microsecond; there are 1000 milliseconds in a second, not 1000 seconds in a microsecond; etc.

Metadata

Metadata

Assignees

Labels

Discussion: RFCThe issue/PR is used as a discussion starting point about the item of the issue/PRType: enhancementThe issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions