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

Generate high resolution timestamp #42

Open
bahmanm opened this issue Aug 21, 2023 · 0 comments
Open

Generate high resolution timestamp #42

bahmanm opened this issue Aug 21, 2023 · 0 comments
Labels
💡 idea Needs investigation/research

Comments

@bahmanm
Copy link
Owner

bahmanm commented Aug 21, 2023

I find myself frequently needing to generate a µs precision timestamp.

some-target :
	@echo Microseconds:                $(call now,micros)
	@echo Milliseconds:                $(call now,millis)
	@echo Seconds:                     $(call now,secs)
	@echo Default precision (millis):  $(call now)
$ make some-target
Microseconds:                1693049901575259
Milliseconds:                1693049901575   
Seconds:                     1693049902  
Default precision (millis):  1693049901575   

This can be used to name log files or to prefix log entries w/ an accurate timestamp.

The question is, is it a common enough use-cases to be included in bmakelib?

See also

@bahmanm bahmanm added ✅ enhancement New feature or request 💡 idea Needs investigation/research and removed ✅ enhancement New feature or request labels Aug 21, 2023
@bahmanm bahmanm added the ✅ enhancement New feature or request label Sep 30, 2023
@bahmanm bahmanm added ✅ enhancement New feature or request and removed ✅ enhancement New feature or request labels Oct 22, 2023
@bahmanm bahmanm removed the ✅ enhancement New feature or request label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 idea Needs investigation/research
Projects
None yet
Development

No branches or pull requests

1 participant