printf("The Blending Time was %lu Milliseconds\n",milli);
PRINTF("The Blending Time was %lu Milliseconds\n",milli);
SpeedTestBlend(nsIBlender *aBlender,nsIImage *aImage){nsresult    result;float       blendamount;nsString    str;PRInt32     numerror,height,width;POINT       cpos;PRUint32    min,seconds,milli,i;SYSTEMTIME  thetime;PRUint32    size;  if(aBlender && aImage)    {    gBlendMessage->GetText(str,3,size);    blendamount = (float)(str.ToInteger(&numerror))/100.0f;    if(blendamount < 0.0)      blendamount = 0.0f;    if(blendamount > 1.0)      blendamount = 1.0f;    printf("\nSTARTING TIMING TEST\n");    ::GetSystemTime(&thetime);    min = thetime.wMinute;    seconds = thetime.wSecond;    milli = thetime.wMilliseconds;    for(i=0;i<20;i++)      {      cpos.x = (100*::rand())/32000;      cpos.y = (100*::rand())/32000;      width = gBlendImage->GetWidth();      height = gBlendImage->GetHeight();      result = Compositetest(aBlender,aImage,cpos.x,cpos.y,width,height,0,0,blendamount,PR_TRUE);      if(result == NS_OK)        Restore(aBlender,aImage);      else        break;      }    ::GetSystemTime(&thetime);    min = thetime.wMinute-min;    if(min>0)      min = min*60;    seconds = min+thetime.wSecond-seconds;    if(seconds>0)      seconds = (seconds*1000)+thetime.wMilliseconds;    else      seconds = thetime.wMilliseconds;    milli=seconds-milli;    printf("The Blending Time was %lu Milliseconds\n",milli);    return(milli);    }  return(0);}