mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
add todo comment
This commit is contained in:
parent
c136bed955
commit
31bf658b20
2 changed files with 3 additions and 2 deletions
|
@ -80,7 +80,7 @@ unsafe fn call_the_closure(function_pointer: *const u8, closure_data_ptr: *const
|
|||
|
||||
#[no_mangle]
|
||||
pub fn rust_main() -> isize {
|
||||
println!("Running Roc closure");
|
||||
eprintln!("Running Roc closure");
|
||||
let start_time = SystemTime::now();
|
||||
|
||||
let size = unsafe { roc_main_size() } as usize;
|
||||
|
@ -121,7 +121,7 @@ pub fn rust_main() -> isize {
|
|||
let end_time = SystemTime::now();
|
||||
let duration = end_time.duration_since(start_time).unwrap();
|
||||
|
||||
println!(
|
||||
eprintln!(
|
||||
"Roc closure took {:.4} ms to compute this answer: {:?}",
|
||||
duration.as_secs_f64() * 1000.0,
|
||||
// truncate the answer, so stdout is not swamped
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue