nerdexam
Microsoft

70-516 · Question #92

You use Microsoft .NET Framework 4.0 to develop an application that connects to a local Microsoft SQL Server 2008 database. The application can access a high-resolution timer. You need to display…

Sign in or unlock 70-516 to reveal the answer and full explanation for question #92. The question stem and answer options stay visible for context.

Question

You use Microsoft .NET Framework 4.0 to develop an application that connects to a local Microsoft SQL Server 2008 database. The application can access a high-resolution timer. You need to display the elapsed time, in sub-milliseconds (<1 millisecond), that a database query takes to execute. Which code segment should you use?

Options

  • Aint Start = Environment.TickCount;
  • BStopwatch sw = Stopwatch.StartNew();
  • CDateTime Start = DateTime.UtcNow;
  • DStopwatch sw = new Stopwatch();

Unlock 70-516 to see the answer

You've previewed enough free 70-516 questions. Unlock 70-516 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-516 Practice