まあマニュアル通りなんですが。 use Time::HiRes (qw/time gettimeofday tv_interval/); まちがい $time = time; # do something $elapse = time - $time; 正しい $time = [ gettimeofday ]; # do something $elapse = tv_interval $time; # 2つのポイント間を計りたい場合は第二引数にも参照を渡す マニュアルより。 time - NOTE 1: This higher resolution timer can return values either less or more than the core time(), depending on whether your platform rounds the higher res