Add a custom log function

This commit is contained in:
Juno Takano 2025-12-13 16:28:13 -03:00
commit 4db4c703d1
5 changed files with 32 additions and 14 deletions

8
src/dev.rs Normal file
View file

@ -0,0 +1,8 @@
pub fn log<F>(function: &F, message: &str) {
eprintln!(
"{:?} [{}] {message}",
crate::ONSET.elapsed(),
std::any::type_name_of_val(function).replace("en::", ""),
);
}