Skip to content

Conversation

@nlordell
Copy link
Contributor

The POSIX standard defines that clock(3) returns a clock_t as a number of clock ticks in CLOCKS_PER_SEC and not CLOCKS_PER_SECOND, source.

The POSIX standard defines that `clock(3)` returns a `clock_t` as a
number of clock ticks in `CLOCKS_PER_SEC` and not `CLOCKS_PER_SECOND`,
[source](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html).
@nlordell nlordell changed the title Use CLOCKS_PER_SEC Use CLOCKS_PER_SEC instead of CLOCKS_PER_SECOND Aug 18, 2025
@nlordell
Copy link
Contributor Author

Note that this is superseded by #1627 (which also includes the s/CLOCKS_PER_SECOND/CLOCKS_PER_SEC/g fix).

@bakpakin
Copy link
Member

oops, thanks 👍

@bakpakin bakpakin merged commit 99abada into janet-lang:master Aug 18, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants