public void Execute()
{
DateTime start = DateTime.Now;
GetTextures gt = new GetTextures(this, m_getTextureUrl, m_textureIds);
gt.Execute();
TimeSpan elapsed = DateTime.Now - start;
Console.WriteLine(
"Successfully got {0} textures out of {1} requests totalling {2} bytes from capability {3} took {4} seconds (avg {5} seconds/texture, {6} kB/s)",
SuccessfulRequests,
m_textureIds.Count,
TotalBytes,
m_getTextureUrl,
elapsed.TotalSeconds,
elapsed.TotalSeconds / (double)m_textureIds.Count,
TotalBytes / elapsed.TotalSeconds / 1024);
}
public static void Main(string[] args) { string getTextureUrl = args[0]; string texturesPath = args[1]; List<string> textureIds = new List<string>(); using (StreamReader sr = new StreamReader(texturesPath)) { string line; while ((line = sr.ReadLine()) != null) textureIds.Add(line); } TextureLoadTest test = new TextureLoadTest(getTextureUrl, textureIds); test.Execute(); }