time a process

I want to find some open source java that times the encryption and decryption of a file, so i can compare the performance of different algorithms. Does anybody know where I could get something like that?Thanks.
[224 byte] By [si@newcastle] at [2007-9-30 22:27:21]
# 1
timerthreadblahblah
talon747 at 2007-7-7 12:50:39 > top of Java-index,Security,Event Handling...
# 2
> timer> thread> blah> blahand when you do it, take readings of 1000's or millions of iterations and average them.
morgalr at 2007-7-7 12:50:39 > top of Java-index,Security,Event Handling...