1月 23, 2012
kamata

備忘録:ミリ秒を取得する



1
2
3
4
5
6
on getMilSecond()
 
	set theCmnd to "perl -e 'use Time::HiRes;my ($wtime,$msec) = split(/\\./ , Time::HiRes::time);my @t = localtime($wtime);printf(\"%04d%02d%02d%02d%02d%02d.%03d\",$t[5]+1900,$t[4]+1,$t[3],$t[2],$t[1],$t[0],($msec/100));'"
	return do shell script theCmnd
 
end getMilSecond

類似記事:

Leave a comment