From 7c74cba839f010a5fe25093daf455b61370b02d7 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Tue, 24 Mar 2020 21:30:25 +0100 Subject: [PATCH] more docs --- scopetime/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scopetime/README.md b/scopetime/README.md index add59555..b0ccbd1b 100644 --- a/scopetime/README.md +++ b/scopetime/README.md @@ -4,9 +4,18 @@ This crate is part of the [gitui](http://gitui.org) project and can be used to annotate arbitrary scopes to `trace` their execution times via `log`: +in your crate: +``` +[dependencies] +scopetime = "0.1" +``` + +in your code: ```rust fn foo(){ scope_time!("foo"); + + // ... do something u wanna measure } ```