Hi,
Used the function to get the amount of time to draw each layer:
layer.DrawingTime.Milliseconds
but when adding up all the layers draw time it doesn't match the time it takes to process the draw function
e.g.
LAYER1 TIME: 0
LAYER2 TIME: 0
LAYER3 TIME: 11
LAYER4 TIME: 15
LAYER5 TIME: 33
LAYER6 TIME: 57
LAYER7 TIME: 83
LAYER8 TIME: 26
LAYER9 TIME: 4
LAYER10 TIME: 52
LAYER11 TIME: 41
LAYER12 TIME: 56
LAYER13 TIME: 0
LAYER14 TIME: 0
LAYER15 TIME: 0
LAYER16 TIME: 933
LAYER17 TIME: 0
LAYER18 TIME: 616
LAYER19 TIME: 194
LAYER20 TIME: 0
Total time spend from timer is 00:00:06.4998336
code is like this:
pEngine.OpenAllLayers();
DateTime startTime1 = DateTime.Now;
DateTime stopTime1 = DateTime.Now;
pEngine.DrawStaticLayers(bitmap, GeographyUnit.Meter);
stopTime1 = DateTime.Now;
PrintLayerDrawTime(); //print out each draw time for each layer
TimeSpan duration1 = stopTime1 - startTime1;
Console.WriteLine("Total time spend from timer is " + duration1.ToString());
so is there some overhead that is not store in the drawtime of each layer?
Thanks
Paul