|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T t
Length: 1012 (0x3f4)
Types: TextFile
Names: »time.t«
└─⟦4f9d7c866⟧ Bits:30007245 EUUGD6: Sikkerheds distributionen
└─⟦b5330643c⟧ »./cops/perl-4.019/perl.tar.Z«
└─⟦2b9a58213⟧
└─⟦this⟧ »perl-4.019/t/op/time.t«
#!./perl
# $Header: time.t,v 4.0 91/03/20 01:55:09 lwall Locked $
print "1..5\n";
($beguser,$begsys) = times;
$beg = time;
while (($now = time) == $beg) {}
if ($now > $beg && $now - $beg < 10){print "ok 1\n";} else {print "not ok 1\n";}
for ($i = 0; $i < 100000; $i++) {
($nowuser, $nowsys) = times;
$i = 200000 if $nowuser > $beguser && $nowsys > $begsys;
last if time - $beg > 20;
}
if ($i >= 200000) {print "ok 2\n";} else {print "not ok 2\n";}
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($beg);
($xsec,$foo) = localtime($now);
$localyday = $yday;
if ($sec != $xsec && $mday && $year)
{print "ok 3\n";}
else
{print "not ok 3\n";}
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($beg);
($xsec,$foo) = localtime($now);
if ($sec != $xsec && $mday && $year)
{print "ok 4\n";}
else
{print "not ok 4\n";}
if (index(" :0:1:-1:365:366:-365:-366:",':' . ($localyday - $yday) . ':') > 0)
{print "ok 5\n";}
else
{print "not ok 5\n";}