<commit_before># timeMe!

Time a block of code with minimal effort.

Sometimes you want to time a certain execution path to see its performance. So, you
add a bunch of time captures and log statements. Cleaning them up isn't so much fun.
It would also be nice to leave them in your code so they can be enabled at will. `timeMe`
is meant to help in that situation.

`timeMe` Will take some options and a function to wrap. It will return the wrapped function. Everytime that function is executed, its time will be recorded. You can choose
to print it out, or query the function for its `lastTime`.

# Usage

```
var foo = timeMe.async('foo()', function(cb) {
    setTimeout(function() {
        cb(null, '25');
    }, 2000);
});
foo(function(err, result) {
    console.log(result);
});

// outputs: 25
// and
// foo() 2000ms
```
# Methods

## `timeMe.configure`

Globally configure the module on what log function to use. Defaults to
`console.log`

```
timeMe.configure({
    log: function() { // do logging here }
});
```

## `timeMe.async`<commit_msg>Minor readme change<commit_after># timeMe!

Time a block of code with minimal effort.

Sometimes you want to time a certain execution path to see its performance. So, you
add a bunch of time captures and log statements. Cleaning them up isn't so much fun.
It would also be nice to leave them in your code so they can be enabled at will. `timeMe`
is meant to help in that situation.

`timeMe` Will take some options and a function to wrap. It will return the wrapped function. Everytime that function is executed, its time will be recorded. You can choose
to print it out, or query the function for its `lastTime`.

# Usage

```
var foo = timeMe.async('foo()', function(cb) {
    setTimeout(function() {
        cb(null, '25');
    }, 2000);
});
foo(function(err, result) {
    console.log(result);
});

// outputs: 25
// and
// foo() 2000ms
```
# Methods

## `timeMe.configure`

Globally configure the module on what log function to use. Defaults to
`console.log`

```
timeMe.configure({
    log: function(msg) { // do logging here }
});
```

## `timeMe.async`
{'fraction_non_alphanumeric': 0.10895310279488395, 'fraction_numerical': 0.011369019422074847, 'mean_word_length': 3.6417582417582417, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5762074', 'n_tokens_mistral': 657, 'n_tokens_neox': 618, 'n_words': 293}