<commit_before># Timing

[![Gem Version](https://badge.fury.io/rb/timing.png)](https://rubygems.org/gems/timing)
[![Build Status](https://travis-ci.org/gabynaiman/timing.png?branch=master)](https://travis-ci.org/gabynaiman/timing)
[![Coverage Status](https://coveralls.io/repos/gabynaiman/timing/badge.png?branch=master)](https://coveralls.io/r/gabynaiman/timing?branch=master)
[![Code Climate](https://codeclimate.com/github/gabynaiman/timing.png)](https://codeclimate.com/github/gabynaiman/timing)
[![Dependency Status](https://gemnasium.com/gabynaiman/timing.png)](https://gemnasium.com/gabynaiman/timing)

Time utils

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'timing'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install timing

## Usage

#### TimeInZone

Acts like Time with specific utc offset.

```ruby
Time.now                                  # => 2015-10-19 22:10:47 -0300
Timing::TimeInZone.now                    # => 2015-10-19 22:10:47 -0300
Timing::TimeInZone.now '-0400'            # => 2015-10-19 21:10:47 -0400

Timing::TimeInZone.at 1445303855          # => 2015-10-19 22:17:35 -0300<commit_msg>Update readme badges<commit_after># Timing

[![Gem Version](https://badge.fury.io/rb/timing.svg)](https://rubygems.org/gems/timing)
[![Build Status](https://travis-ci.org/gabynaiman/timing.svg?branch=master)](https://travis-ci.org/gabynaiman/timing)
[![Coverage Status](https://coveralls.io/repos/gabynaiman/timing/badge.svg?branch=master)](https://coveralls.io/r/gabynaiman/timing?branch=master)
[![Code Climate](https://codeclimate.com/github/gabynaiman/timing.svg)](https://codeclimate.com/github/gabynaiman/timing)
[![Dependency Status](https://gemnasium.com/gabynaiman/timing.svg)](https://gemnasium.com/gabynaiman/timing)

Time utils

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'timing'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install timing

## Usage

#### TimeInZone

Acts like Time with specific utc offset.

```ruby
Time.now                                  # => 2015-10-19 22:10:47 -0300
Timing::TimeInZone.now                    # => 2015-10-19 22:10:47 -0300
Timing::TimeInZone.now '-0400'            # => 2015-10-19 21:10:47 -0400

Timing::TimeInZone.at 1445303855          # => 2015-10-19 22:17:35 -0300
{'fraction_non_alphanumeric': 0.16828752642706132, 'fraction_numerical': 0.07272727272727272, 'mean_word_length': 3.6483300589390963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3034681', 'n_tokens_mistral': 1017, 'n_tokens_neox': 874, 'n_words': 131}