'''' This code is part of Document Solutions for Word demos.'' Copyright (c) MESCIUS inc. All rights reserved.''ImportsSystem.Collections.GenericImportsSystem.LinqImportsGrapeCity.Documents.Word '' This sample creates a 100 instances of GcWordDocument'' and prints the time that it took.PublicClassTimeManyDocsPublicFunctionCreateDocx() AsGcWordDocumentConstN = 100 '' The document to show the resulting time:Dim doc = NewGcWordDocument()'' Starting time:Dim start = Util.TimeNow()For i = 0ToN - 1Dim dummy = NewGcWordDocument()Next '' Delta:Dim delta = Util.TimeNow() - start'' Print out the result:Dim message = $"Time used to create {n} instances of GcWordDocument: {delta}." doc.Body.Sections.First.GetRange().Paragraphs.Add(message)'' Done:Return docEndFunctionEndClass