As far as I know, no such convenience method exists You can calculate the time elapsed since the application started running by recording the start time and then computing the difference between the current time and the start time. Here's a sample code in C#:
public static void Main()
{
startTime = DateTime.Now;
・
・
・
TimeSpan upTime = DateTime.Now - startTime;
Console.WriteLine("Application uptime: {0}", upTime);
}