1Warp(3)               User Contributed Perl Documentation              Warp(3)
2
3
4

NAME

6       Time::Warp - control over the flow of time
7

SYNOPSIS

9           use Time::Warp qw(scale to time);
10
11           to(time + 5);  # 5 seconds ahead
12           scale(2);      # make time flow twice normal
13

DESCRIPTION

15       Our external experience unfolds in 3 1/2 dimensions (time has a
16       dimensionality of 1/2).  The Time::Warp module offers developers
17       control over the measurement of time.
18

API

20       ·   to($desired_time)
21
22           The theory of relativity asserts that all physical laws are
23           enforced relative to the observer.  Since the starting point of
24           time is arbitrary, it is permissible to change it.  This has the
25           effect of making it appear as if time is moving forwards or
26           backward instanteously.  For example, on some types of operating
27           systems time starts at Wed Dec 31 19:00:00 1969 (this will likely
28           change as we approach 2030 and with the acceptance of 64-bit CPUs).
29
30             to(time + 60*60);       # 1 hour ahead
31
32       ·   scale($factor)
33
34           Changes the speed at which time is progressing.
35
36             scale(scale * 2);   # double the speed of time
37
38           Note that it is not possible to stop time or cause it to reverse
39           since this is forbidden by the second law of thermodynamics.
40

ALSO SEE

42       Time::HiRes and Event.
43

SUPPORT

45       Please direct your insights or complaints to perl-loop@perl.org.
46

DISCLAIMER

48       THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
49       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
50       MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THIS IS NOT A
51       TIME MACHINE.  THIS MODULE CANNOT BE USED TO VIOLATE THE SECOND LAW OF
52       THERMODYNAMICS.
53
55       Copyright © 1999, 2000 Joshua Nathaniel Pritikin.  All rights reserved.
56       This program is free software; you can redistribute it and/or modify it
57       under the same terms as Perl itself.
58
59
60
61perl v5.28.1                      2018-10-08                           Warp(3)
Impressum