hitimes 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY +9 -0
- data/LICENSE +19 -0
- data/README +74 -0
- data/Rakefile +63 -0
- data/examples/benchmarks.rb +86 -0
- data/examples/stats.rb +29 -0
- data/ext/hitimes_ext.c +20 -0
- data/ext/hitimes_instant_clock_gettime.c +20 -0
- data/ext/hitimes_instant_osx.c +16 -0
- data/ext/hitimes_instant_windows.c +27 -0
- data/ext/hitimes_interval.c +340 -0
- data/ext/hitimes_interval.h +73 -0
- data/ext/hitimes_stats.c +217 -0
- data/ext/hitimes_stats.h +30 -0
- data/ext/mkrf_conf.rb +20 -0
- data/gemspec.rb +49 -0
- data/lib/hitimes.rb +21 -0
- data/lib/hitimes/paths.rb +54 -0
- data/lib/hitimes/timer.rb +213 -0
- data/lib/hitimes/version.rb +42 -0
- data/spec/interval_spec.rb +115 -0
- data/spec/paths_spec.rb +14 -0
- data/spec/spec_helper.rb +6 -0
- data/spec/stats_spec.rb +44 -0
- data/spec/timer_spec.rb +98 -0
- data/spec/version_spec.rb +27 -0
- data/tasks/announce.rake +38 -0
- data/tasks/config.rb +107 -0
- data/tasks/distribution.rake +45 -0
- data/tasks/documentation.rake +31 -0
- data/tasks/extension.rake +45 -0
- data/tasks/rspec.rake +31 -0
- data/tasks/rubyforge.rake +51 -0
- data/tasks/utils.rb +80 -0
- metadata +131 -0
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hitimes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jeremy Hinegardner
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-09-14 00:00:00 -06:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rake
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.8.1
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: configuration
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.0.5
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: mkrf
|
37
|
+
type: :runtime
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 0.2.3
|
44
|
+
version:
|
45
|
+
description: Hitimes is a fast, high resolution timer library for recording performance metrics. It uses the appropriate C method calls for each system to get the highest granularity time increments possible. It currently supports any system with the POSIX call clock_gettime() and OSX. Windows is in the works. Using Hitimes can be faster than using a series of Time.new calls, and it will have a much higher granularity. It is definitely faster than using Process.times.
|
46
|
+
email: jeremy@copiousfreetime.org
|
47
|
+
executables: []
|
48
|
+
|
49
|
+
extensions:
|
50
|
+
- ext/mkrf_conf.rb
|
51
|
+
extra_rdoc_files:
|
52
|
+
- README
|
53
|
+
- HISTORY
|
54
|
+
- LICENSE
|
55
|
+
- lib/hitimes/paths.rb
|
56
|
+
- lib/hitimes/timer.rb
|
57
|
+
- lib/hitimes/version.rb
|
58
|
+
- lib/hitimes.rb
|
59
|
+
- ext/hitimes_ext.c
|
60
|
+
- ext/hitimes_instant_clock_gettime.c
|
61
|
+
- ext/hitimes_instant_osx.c
|
62
|
+
- ext/hitimes_instant_windows.c
|
63
|
+
- ext/hitimes_interval.c
|
64
|
+
- ext/hitimes_stats.c
|
65
|
+
files:
|
66
|
+
- examples/benchmarks.rb
|
67
|
+
- examples/stats.rb
|
68
|
+
- ext/hitimes_ext.c
|
69
|
+
- ext/hitimes_instant_clock_gettime.c
|
70
|
+
- ext/hitimes_instant_osx.c
|
71
|
+
- ext/hitimes_instant_windows.c
|
72
|
+
- ext/hitimes_interval.c
|
73
|
+
- ext/hitimes_stats.c
|
74
|
+
- ext/hitimes_interval.h
|
75
|
+
- ext/hitimes_stats.h
|
76
|
+
- ext/mkrf_conf.rb
|
77
|
+
- lib/hitimes/paths.rb
|
78
|
+
- lib/hitimes/timer.rb
|
79
|
+
- lib/hitimes/version.rb
|
80
|
+
- lib/hitimes.rb
|
81
|
+
- spec/interval_spec.rb
|
82
|
+
- spec/paths_spec.rb
|
83
|
+
- spec/spec_helper.rb
|
84
|
+
- spec/stats_spec.rb
|
85
|
+
- spec/timer_spec.rb
|
86
|
+
- spec/version_spec.rb
|
87
|
+
- README
|
88
|
+
- HISTORY
|
89
|
+
- LICENSE
|
90
|
+
- tasks/announce.rake
|
91
|
+
- tasks/distribution.rake
|
92
|
+
- tasks/documentation.rake
|
93
|
+
- tasks/extension.rake
|
94
|
+
- tasks/rspec.rake
|
95
|
+
- tasks/rubyforge.rake
|
96
|
+
- tasks/config.rb
|
97
|
+
- tasks/utils.rb
|
98
|
+
- Rakefile
|
99
|
+
- gemspec.rb
|
100
|
+
has_rdoc: true
|
101
|
+
homepage: http://copiousfreetime.rubyforge.org/hitimes/
|
102
|
+
post_install_message:
|
103
|
+
rdoc_options:
|
104
|
+
- --line-numbers
|
105
|
+
- --inline-source
|
106
|
+
- --main
|
107
|
+
- README
|
108
|
+
require_paths:
|
109
|
+
- lib
|
110
|
+
- ext
|
111
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: "0"
|
116
|
+
version:
|
117
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: "0"
|
122
|
+
version:
|
123
|
+
requirements: []
|
124
|
+
|
125
|
+
rubyforge_project: copiousfreetime
|
126
|
+
rubygems_version: 1.2.0
|
127
|
+
signing_key:
|
128
|
+
specification_version: 2
|
129
|
+
summary: Hitimes is a fast, high resolution timer library for recording performance metrics
|
130
|
+
test_files: []
|
131
|
+
|