Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ethlo authored Aug 16, 2019
1 parent 981eaa1 commit 85a420c
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,20 @@ Easy to use Java Chronograph (stopwatch) allowing measurement of elapsed time.

## Getting started

### Simple
```java
### Include in your project

#### Maven coordinates
```xml
<dependency>
<groupId>com.ethlo.time</groupId>
<artifactId>chronograph</artifactId>
<version>1.0.1</version>
</dependency>
```

### Simple usage

```java
final Chronograph chronograph = Chronograph.create();
chronograph.start("my-task");

Expand All @@ -28,7 +40,7 @@ chronograph.stop();
System.out.println(chronograph.prettyPrint());
```

Output
*Output*
```bash
--------------------------------------------------------------------------------
| Task | Average | Total | Invocations | % |
Expand All @@ -55,7 +67,7 @@ for (int i = 0; i < 100_000; i++)
System.out.println(chronograph.prettyPrint());
```

Output:
*Output*
```bash
--------------------------------------------------------------------------------
| Task | Average | Total | Invocations | % |
Expand Down

0 comments on commit 85a420c

Please sign in to comment.