• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux Time::HiRes Download

Time::HiRes

July 20, 2009
This software offers high resolution alarm capabilities, as well as sleep functions and interval timers. It also includes gettimeofday features for precise timekeeping.
Version 1.9719
License Perl Artistic License
Platform Linux
Supported Languages English
Homepage search.cpan.org
Developed by Jarkko Hietaniemi
Time::HiRes is a Perl module that provides a high resolution time and timer management interface to system calls including usleep, nanosleep, ualarm, gettimeofday, and setitimer/getitimer. Usage examples can be found in the "EXAMPLES" section below and within the test scripts. Check your system documentation for further information on the underlying nanosleep or usleep, ualarm, gettimeofday, and setitimer/getitimer calls.

If your system lacks gettimeofday() or an emulation of it, gettimeofday() or the one-argument form of tv_interval() won't be available. Similarly, the lack of nanosleep(), usleep(), select(), and poll means that Time::HiRes::usleep(), Time::HiRes::nanosleep(), or Time::HiRes::sleep() won't be supported. If your system lacks both ualarm() and setitimer(), then Time::HiRes::ualarm() and Time::HiRes::alarm() won't be available either.

Attempting to import an unimplemented function in the use statement will result in a compile-time error. If your subsecond sleeping is implemented with nanosleep() instead of usleep(), you can mix subsecond sleeping with signals since nanosleep() does not use signals. However, this is not portable, and you should first verify the truth value of &Time::HiRes::d_nanosleep and carefully read your nanosleep() C API documentation for any peculiarities.

If you plan on using nanosleep for purposes other than mixing sleeping with signals, consider whether Perl is the appropriate tool to use for work requiring nanosecond accuracy. It's important to keep in mind that unless you are working on a hard realtime system, any clocks and timers will be imprecise, particularly in a pre-emptive multiuser system. Additionally, understanding the difference between wallclock time and process time (in UNIX-like systems the sum of user and system times) is critical. Attempting to sleep for a certain amount of time will most likely lead to sleeping more than the specified time, but it's possible to sleep slightly less.

The following are examples of how to use Time::HiRes:
- Import the desired functions: use Time::HiRes qw( usleep ualarm gettimeofday tv_interval nanosleep clock_gettime clock_getres clock_nanosleep clock stat );
- Call usleep: usleep($microseconds);
- Call nanosleep: nanosleep($nanoseconds);
- Call ualarm with two arguments: ualarm($microseconds, $interval_microseconds);
- Get the elapsed time in seconds and microseconds: [$seconds, $microseconds] = gettimeofday;
- Compute the elapsed time between two time values: $elapsed = tv_interval ( $t0, [$seconds, $microseconds]); $elapsed = tv_interval ( $t0, [gettimeofday]); $elapsed = tv_interval ( $t0 );
- Import the following functions: use Time::HiRes qw ( time alarm sleep );
- Get the current time as floating point seconds: $now_fractions = time;
- Sleep for a given number of floating-point seconds: sleep ($floating_seconds);
- Set a SIGALRM signal to be delivered to the calling process after a specified time interval: alarm ($floating_seconds);
- Set a SIGALARM signal to be delivered to the calling process repeatedly after a specific time interval: alarm ($floating_seconds, $floating_interval);
- Import the following
What's New

Version 1.9719: N/A

Free Download 85.5K
395
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

WySQL
Manage remote databases with ease using WySQL's web console interface, ideal for ...
Gnetload
Gnetload is a GNOME applet that shows network load through a histogram.
Strigi
This software is a desktop search engine that can work independently from ...
Pie Break Reminder
Pie Break Reminder is a basic program designed to remind users to ...
Image matting tool
The Image Matting tool is a software that facilitates quick and precise ...
DialogBlocks
DialogBlocks is a resource editor software that allows users to quickly create ...
The GeoViz Toolkit
The GeoViz Toolkit is a collection of software tools designed to visually ...
robocom
Robocom is a software tool that provides syntax highlighting for scripts written ...
Genezzo::BufCa::BufCa
This software provides a straightforward buffer cache that operates in a single ...
ioAmarok
ioAmarok is a user-friendly music player designed for Linux/BSD Infodomestic Objects. This ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.