The approach proposed by chm052 will certainly work, but it will couple the time measurement time logic to your business method, which is not desirable. After all the method is written to execute "dosomething()" - and before and after these you want to measure times. Tomorrow you'll want to log the statements link "entering the methods/leaving the method doSomething", in a while you'll probably want to check permissions on whether this code can be run at all.
I hope you've got my point, while this approach is good for simple projects it will pollute your code with unrelated concerns
There are a couple of techniques.
AOP, this was already suggested by Joachim Isaksson. AOP really shines at this area. Create an advice where you'll use your timemeasurement logic and you're ready to go.
If you want/need to stick to OOP technologies, I suggest you to create a Proxy
or Decorator
Technically its really close to each other, its only how you bear in mind the intention of your concern.
Hope this helps