added method Beatmap::from_path

This commit is contained in:
MaxOhn
2021-11-17 16:53:51 +01:00
parent 7b3294eda1
commit 82b124fa75
6 changed files with 86 additions and 67 deletions
+2 -3
View File
@@ -601,15 +601,14 @@ fn difficulty_range_od(od: f64) -> f64 {
#[test]
// #[ignore]
fn custom_osu() {
use std::{fs::File, time::Instant};
use std::time::Instant;
use crate::{Beatmap, OsuPP};
let path = "E:Games/osu!/beatmaps/116169_.osu";
let file = File::open(path).unwrap();
let start = Instant::now();
let map = Beatmap::parse(file).unwrap();
let map = Beatmap::from_path(path).unwrap();
let iters = 100;
let accum = start.elapsed();