aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Rheaume <mathieu@codingrhemes.com>2015-09-01 21:51:57 -0400
committerMathieu Rheaume <mathieu@codingrhemes.com>2015-09-01 21:51:57 -0400
commitba1109b920d1a31b03872800fb9e335adcf70eca (patch)
tree9c6ccf083dc62f2aacad46d0259efaf0665d1af6
parente46499a5dfd9189fc439c228d9a5fe23dfec0d7d (diff)
downloadservo-ba1109b920d1a31b03872800fb9e335adcf70eca.tar.gz
servo-ba1109b920d1a31b03872800fb9e335adcf70eca.zip
Issue #7501 emove unused time function in time module of profile
-rw-r--r--components/profile/time.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/components/profile/time.rs b/components/profile/time.rs
index f1c8527366c..302003ecbb8 100644
--- a/components/profile/time.rs
+++ b/components/profile/time.rs
@@ -209,16 +209,3 @@ impl Profiler {
println!("");
}
}
-
-pub fn time<T, F>(msg: &str, callback: F) -> T
- where F: Fn() -> T
-{
- let start_time = precise_time_ns();
- let val = callback();
- let end_time = precise_time_ns();
- let ms = (end_time - start_time) as f64 / 1000000f64;
- if ms >= 5f64 {
- debug!("{} took {} ms", msg, ms);
- }
- return val;
-}