A
Andrej Kampos
Please Help me, I make simple program for calculation :
long ms = DateTime.Now.Ticks / 10000 ;
System.Console.WriteLine( " {0} " , ms - msOld ) ;*/
int begin = System.Environment.TickCount;
for ( int i=0; i<100000000; ++i )
{
int a = 10;
double b = 10.0;
int aa = a * a;
double bb = b * b;
double ret = bb / aa * aa;
}
int end = System.Environment.TickCount - begin;
System.Console.WriteLine( end );
HW PC 1.6 Ghz , WinCE 4.2 , CF 1.0 , ( PentiumM ) - calculation time
- release 8415 ms
- debug 10222 ms
HW PC 1.4 Ghz , WinXP Prof. .NET 1.1 ( PentiumM ) - calculation time
- release 220 ms
- debug 5067 ms
Does anybody have idea what causes such dramatic difference of overall
calculation time?
Thanks
Andrej.
long ms = DateTime.Now.Ticks / 10000 ;
System.Console.WriteLine( " {0} " , ms - msOld ) ;*/
int begin = System.Environment.TickCount;
for ( int i=0; i<100000000; ++i )
{
int a = 10;
double b = 10.0;
int aa = a * a;
double bb = b * b;
double ret = bb / aa * aa;
}
int end = System.Environment.TickCount - begin;
System.Console.WriteLine( end );
HW PC 1.6 Ghz , WinCE 4.2 , CF 1.0 , ( PentiumM ) - calculation time
- release 8415 ms
- debug 10222 ms
HW PC 1.4 Ghz , WinXP Prof. .NET 1.1 ( PentiumM ) - calculation time
- release 220 ms
- debug 5067 ms
Does anybody have idea what causes such dramatic difference of overall
calculation time?
Thanks
Andrej.