How To Install rubygem-hitimes on Fedora 36

In this tutorial we learn how to install rubygem-hitimes in Fedora 36. rubygem-hitimes is A fast, high resolution timer library for recording performance metrics

Introduction

In this tutorial we learn how to install rubygem-hitimes on Fedora 36.

What is rubygem-hitimes

Hitimes is a fast, high resolution timer library for recording performance metrics. It uses the appropriate low method calls for each system to get the highest granularity time increments possible. It currently supports any of the following systems X * Windows * JRuby 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.

We can use yum or dnf to install rubygem-hitimes on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-hitimes.

Install rubygem-hitimes on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install rubygem-hitimes using dnf by running the following command:

sudo dnf -y install rubygem-hitimes

Install rubygem-hitimes on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rubygem-hitimes using yum by running the following command:

sudo yum -y install rubygem-hitimes

How To Uninstall rubygem-hitimes on Fedora 36

To uninstall only the rubygem-hitimes package we can use the following command:

sudo dnf remove rubygem-hitimes

rubygem-hitimes Package Contents on Fedora 36

/usr/share/gems/gems/hitimes-2.0.0
/usr/share/gems/gems/hitimes-2.0.0/LICENSE
/usr/share/gems/gems/hitimes-2.0.0/lib
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/initialize.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/instant.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/interval.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/metric.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/mutexed_stats.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/paths.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/stats.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/timed_metric.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/timed_value_metric.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/value_metric.rb
/usr/share/gems/gems/hitimes-2.0.0/lib/hitimes/version.rb
/usr/share/gems/specifications/hitimes-2.0.0.gemspec

References

Summary

In this tutorial we learn how to install rubygem-hitimes on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).