/
View dependency graph
Depends on
- libmodule-build-tiny-perl (libmodule-build-tiny-perl)
- libtest-class-perl (libtest-class-perl)
- libtest-mocktime-perl (libtest-mocktime-perl)
- libtest-requires-perl (libtest-requires-perl)
- libtest-simple-perl (libtest-simple-perl)
- perl (perl)
- debhelper-compat
README (full)
NAME
Test::MockTime::HiRes - Replaces actual time with simulated high resolution time
SYNOPSIS
use Test::MockTime::HiRes qw(mock_time);
my $now = time;
mock_time {
time; # == $now;
sleep 3; # returns immediately
time; # == $now + 3;
usleep $microsecond;
} $now;
DESCRIPTION
Test::MockTime::HiRes is a Time::HiRes compatible version of
Test::MockTime. You can wait milliseconds in simulated time.
It also provides mock_time to restrict the effect of the simulation
in a code block.
SEE ALSO
LICENSE
Copyright (C) INA Lintaro
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
INA Lintaro [email protected]
| dir | debian/ |
| dir | lib/ |
| dir | t/ |
| file | Build.PL |
| file | Changes |
| file | LICENSE |
| file | MANIFEST |
| file | META.json |
| file | META.yml |
| file | README.md |
| file | cpanfile |
| file | minil.toml |