The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Time::Virtual - Publish high-precision time or custom implementations of time

SYNOPSIS

  require Time::Virtual;

  # XXX add example

DESCRIPTION

This module provides a mechanism to insert a level of indirection between the actually hardware-level time and the time as seen by the current process.

Effort is made to avoid any assumptions about how time is represented and what is the available precision.

There is also a C-API available in order to allow customizing the passage of time. (Speed up, slow down, time travel, etc.)