10 2018 档案

摘要:使用microtime() 可以将时间精确到秒之后4位,通过bcsub()避免获得科学计数法结果。 <? function add($a, $b) { return $a + $b; } $start = microtime(true); $result = add(99, 88888); $end = microtime(true); $usedTime = bcsub($en... 阅读全文
posted @ 2018-10-15 20:34 犀利瓜 阅读(821) 评论(0) 推荐(0)
摘要:1.安装docker-compose2. 下载yearning源码3. 安装yearning1.34. inception5.相关资料 1.安装docker-compose yum -y install epel-release python-pip pip install --upgrade pip pip install --upgrade backports.ssl_match_host... 阅读全文
posted @ 2018-10-15 11:10 犀利瓜 阅读(1360) 评论(0) 推荐(0)
摘要:测试代码test.php: <?php function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } function a($arr 阅读全文
posted @ 2018-10-12 16:24 犀利瓜 阅读(804) 评论(0) 推荐(1)