A very simple way to do this is to take a timestamp before you execute your method, and then see how long it has taken to complete. For example:
DateTime scriptStart = DateTime.Now;
SomeMethod();
DateTime scriptEnd = DateTime.Now;
TimeSpan scriptTime = scriptEnd - scriptStart;
int seconds = scriptTime.TotalSeconds;