innmind/time-warp

This package is abandoned and no longer maintained. The author suggests using the innmind/time package instead.

Time warp

Maintainers

Package info

github.com/Innmind/TimeWarp

Homepage

Issues

pkg:composer/innmind/time-warp

Statistics

Installs: 101 940

Dependents: 1

Suggesters: 1

Stars: 1

5.1.0 2026-01-18 09:10 UTC

This package is auto-updated.

Last update: 2026-02-14 16:14:24 UTC


README

Build Status codecov Type Coverage

Important

This project has been replaced by innmind/time

Small library to abstract the way to halt the program.

Installation

composer require innmind/time-warp

Usage

use Innmind\TimeWarp\Halt;
use Innmind\TimeContinuum\Period;

function yourApp(Halt $halt): void
{
    // do something
    $halt(Period::minute(42))->unwrap();
    // do some more
}

yourApp(Halt::new());

This example will halt your program for 42 minutes.

Logging

use Innmind\TimeWarp\Halt;
use Psr\Log\LoggerInterface;

$halt = Halt::logger($halt, /** an instance of LoggerInterface */);