Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gawk's gettimeofday if available #57

Closed
xonixx opened this issue Sep 23, 2021 · 0 comments
Closed

Use gawk's gettimeofday if available #57

xonixx opened this issue Sep 23, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@xonixx
Copy link
Owner

xonixx commented Sep 23, 2021

https://www.gnu.org/software/gawk/manual/html_node/Extension-Sample-Time.html

Rationale

  1. This can help with fixing Timings on Mac are 1-sec precise #51
  2. This can speed-up timings on systems with Gawk by not relying on external date invocation.

$ date +%s%3N ;  AWKLIBPATH="$(pwd)/soft/gawk51_libs" ./soft/gawk51 -ltime 'BEGIN { print int(gettimeofday()*1000) }'
1632408331587
1632408331589
@xonixx xonixx added the enhancement New feature or request label Sep 23, 2021
@xonixx xonixx added this to the 0.9.11 milestone Sep 23, 2021
@xonixx xonixx self-assigned this Sep 23, 2021
@xonixx xonixx changed the title Use gawk's gettimeofday if availabe Use gawk's gettimeofday if available Sep 26, 2021
xonixx added a commit that referenced this issue Sep 26, 2021
xonixx added a commit that referenced this issue Sep 26, 2021
xonixx added a commit that referenced this issue Sep 26, 2021
xonixx added a commit that referenced this issue Sep 26, 2021
xonixx added a commit that referenced this issue Sep 26, 2021
@xonixx xonixx closed this as completed Sep 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant