Returning start/end and elapsed time with batch summaries (#92)

Returning start/end and elapsed timestamps for batches with the batch summary.
This commit is contained in:
Benjamin Russell
2016-10-13 12:14:22 -07:00
committed by GitHub
parent 2f876714ed
commit 2eeed98a63
3 changed files with 54 additions and 0 deletions

View File

@@ -132,6 +132,9 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
return Batches.Select((batch, index) => new BatchSummary
{
Id = index,
ExecutionStart = batch.ExecutionStartTimeStamp,
ExecutionEnd = batch.ExecutionEndTimeStamp,
ExecutionElapsed = batch.ExecutionElapsedTime,
HasError = batch.HasError,
Messages = batch.ResultMessages.ToArray(),
ResultSetSummaries = batch.ResultSummaries,