Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sun Ning
committed
Jul 2, 2012
1 parent
88f1dbb
commit 097b805
Showing
1 changed file
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
# timing | ||
|
||
A Clojure library designed to ... well, that part is up to you. | ||
Timing is a simple library to log call time using perf4j. | ||
|
||
## Usage | ||
|
||
FIXME | ||
Just wrap forms you want to calculate call time: | ||
|
||
```clojure | ||
(timed :tag | ||
(look-up-db ...) | ||
(assemble-data ...)) | ||
``` | ||
|
||
Note that you have to provide a `tag` to identify these forms in | ||
timing log. | ||
|
||
Timing will select a logging provider automatically by looking up your | ||
classpath (slf4j, log4j and stderr). Timing doesn't depend on any | ||
logging provider at compile time. | ||
|
||
## License | ||
|
||
Copyright © 2012 FIXME | ||
Copyright © 2012 [Sun Ning](http://github.com/sunng87) | ||
|
||
Distributed under the Eclipse Public License, the same as Clojure. |