        , @durationAccuracy    = 'ss'
        , @additionalInfo      = 1;
 
+.EXAMPLE
+    DECLARE @tsql NVARCHAR(MAX) = N'SET NOCOUNT OFF; DECLARE @tsql NVARCHAR(MAX) = N''BACKUP DATABASE [master] TO DISK = N''''C:\master'' +
+                                   REPLACE(CAST(CAST(GETDATE() AS DATETIME2(7)) AS NVARCHAR(MAX)), '':'', '' '') +
+                                   ''.bak'''' WITH NOFORMAT, NOINIT;''
+                                   EXECUTE sp_executesql @tsql;';
+    EXEC sp_BenchmarkTSQL
+         @tsqlStatement     = @tsql
+       , @numberOfExecution = 3
+       , @saveResults       = 1
+       , @calcMedian        = 1
+       , @clearCache        = 1
+       , @printStepInfo     = 1
+       , @durationAccuracy  = 'ms'
+       , @dateTimeFunction  = 'SYSUTCDATETIME'
+       , @additionalInfo    = 1;
+
 .LICENSE MIT
 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

      , AdditionalInfo      XML           NULL
      );

    WHILE @stepNumnber < @numberOfExecution
    BEGIN
        SET @stepNumnber = @stepNumnber + 1;

                                 WHEN @dateTimeFunction = 'SYSUTCDATETIME' THEN SYSUTCDATETIME()
                            END;

        IF @additionalInfo = 1
            EXEC sp_executesql @tsqlStatement, N'@additionalXMLOUT XML OUTPUT', @additionalXMLOUT = @additionalXML OUTPUT SELECT @additionalXML;

        IF @additionalInfo = 0
            EXEC sp_executesql @tsqlStatement;

        SET @finishTime = CASE WHEN @dateTimeFunction = 'SYSDATETIME'    THEN SYSDATETIME()
                               WHEN @dateTimeFunction = 'SYSUTCDATETIME' THEN SYSUTCDATETIME()
