oops, left in some debug stuff
All checks were successful
isspam build / build (push) Successful in 6m3s
All checks were successful
isspam build / build (push) Successful in 6m3s
This commit is contained in:
parent
c0b115d128
commit
3d28435e9b
@ -80,8 +80,8 @@ extern "rust-cold" fn die() -> ! {
|
||||
|
||||
fn work(file_path: &OsStr, stats: &mut Stats) {
|
||||
WORK_STATE.with_borrow_mut(|state: &mut WorkState| {
|
||||
// Load file
|
||||
let start_time = Instant::now();
|
||||
// // Load file
|
||||
// let start_time = Instant::now();
|
||||
|
||||
// let Ok(text) = fs::read(file_path) else {
|
||||
// eprintln!("invalid file!");
|
||||
@ -113,11 +113,11 @@ fn work(file_path: &OsStr, stats: &mut Stats) {
|
||||
|
||||
// let text = include_bytes!("../../../books/Advanced Techniques in Web Intelligence – Part II.txt").as_slice();
|
||||
|
||||
let time_reading = start_time.elapsed();
|
||||
{
|
||||
let mut guard = TIME_SPENT_READING_FILES.lock().unwrap();
|
||||
*guard += time_reading;
|
||||
}
|
||||
// let time_reading = start_time.elapsed();
|
||||
// {
|
||||
// let mut guard = TIME_SPENT_READING_FILES.lock().unwrap();
|
||||
// *guard += time_reading;
|
||||
// }
|
||||
|
||||
// analyze(&text, stats);
|
||||
// analyze2(&text, stats);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user