… | |
… | |
28 | our $TICK_WATCHER; |
28 | our $TICK_WATCHER; |
29 | our $NEXT_TICK; |
29 | our $NEXT_TICK; |
30 | |
30 | |
31 | our %CFG; |
31 | our %CFG; |
32 | |
32 | |
33 | our $uptime; |
33 | our $UPTIME; $UPTIME ||= time; |
34 | |
|
|
35 | $uptime ||= time; |
|
|
36 | |
34 | |
37 | ############################################################################# |
35 | ############################################################################# |
38 | |
36 | |
39 | =head2 GLOBAL VARIABLES |
37 | =head2 GLOBAL VARIABLES |
40 | |
38 | |
41 | =over 4 |
39 | =over 4 |
|
|
40 | |
|
|
41 | =item $cf::UPTIME |
|
|
42 | |
|
|
43 | The timestamp of the server start (so not actually an uptime). |
42 | |
44 | |
43 | =item $cf::LIBDIR |
45 | =item $cf::LIBDIR |
44 | |
46 | |
45 | The perl library directory, where extensions and cf-specific modules can |
47 | The perl library directory, where extensions and cf-specific modules can |
46 | be found. It will be added to C<@INC> automatically. |
48 | be found. It will be added to C<@INC> automatically. |