3 # $Header: op.time,v 1.0 87/12/18 13:14:33 root Exp $
7 ($beguser,$begsys) = times;
11 while (($now = time) == $beg) {}
13 if ($now > $beg && $now - $beg < 10){print "ok 1\n";} else {print "not ok 1\n";}
15 for ($i = 0; $i < 100000; $i++) {
16 ($nowuser, $nowsys) = times;
17 $i = 200000 if $nowuser > $beguser && $nowsys > $begsys;
18 last if time - $beg > 20;
21 if ($i >= 200000) {print "ok 2\n";} else {print "not ok 2\n";}
23 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime($beg);
24 ($xsec,$foo) = localtime($now);
27 if ($sec != $xsec && $yday && $wday && $year)
32 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime($beg);
33 ($xsec,$foo) = localtime($now);
35 if ($sec != $xsec && $yday && $wday && $year)
40 if (index(" :0:1:-1:365:366:-365:-366:",':' . ($localyday - $yday) . ':') > 0)