2,763
社区成员
发帖
与我相关
我的任务
分享
#!/usr/bin/ruby -w
start_time = Time.now.tv_usec
1000.times {p 1}
end_time = Time.now.tv_usec
p '<br>'
p start_time , '<br/>'
p end_time , '<br/>'
p end_time - start_time
#!/usr/bin/ruby -w
a = Time.now.to_f
n = 9999
for i in 1..n
print 1
end
b = Time.now.to_f
p '<pre/>'
p(b-a)
<?php require_once 'test_func.php';
$n = 9999;
for ($i = 0; $i < $n; $i++) {
echo 1;
}
$str = getime();
p($str);
?>