How can I measure time in Java (Is there a function like gethrtime() ?) I am using Kaffe to run it. -Samarjeet.