Skip to content

Instantly share code, notes, and snippets.

@toshimaru
Last active October 13, 2015 11:28
Show Gist options
  • Save toshimaru/4188781 to your computer and use it in GitHub Desktop.
Save toshimaru/4188781 to your computer and use it in GitHub Desktop.
パフォーマンス計測コード
<?php
$time_start = microtime(true);
// 何か重い処理
$time = microtime(true) - $time_start;
echo "{$time} 秒";
beginning_time = Time.now
# process
end_time = Time.now
puts "Time elapsed #{(end_time - beginning_time)} seconds"
@toshimaru
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment