Add a custom log function
This commit is contained in:
parent
c01c4c30cd
commit
4db4c703d1
5 changed files with 32 additions and 14 deletions
8
src/dev.rs
Normal file
8
src/dev.rs
Normal 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::", ""),
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue