おはよう!私はこのコードを持っている: final class bench
{
protected static $start_time;
protected static $start_memory;
public static function start()
{
self::$start_time = microtime(true);
私は最大6の長さと数字とアルファベットの混在した文字列が必要です。 12.私の質問、このコードの出力は常に一意であるかどうかということである - 10は How can I make short random unique keys, like YouTube video IDs, in PHP? と PHP generate a unique string を非常に有用であったことが、彼らは長さ
私のPHPスクリプトの指定された部分の所要時間を測定したいと思います。 $startTime = microtime(true);
//some operations which needs 0.1 to 100 seconds to run
$endTime = microtime(true);
どのように私は整数として、マイクロ秒単位で期間を得ることができますか? これは動作しません: