In VB6 I used GetTickCount() Windows API. Is there a fuction in c# that will allow me to measure the time it takes to execute a piece of code?