E
Elmar Jacobs
hi guys,
to make a performance analysis i want to print out the milli sec during
two time stamps. for this i save a ref time stamp and subtract at
different position the actual time from the ref time stamp. But i get
always zero as value. here an example:
{
....
IntPtr dummyEvent = OpenNETCF.Win32.Core.CreateEvent(false, false, dummy");
CStatusControl._testDateTime = System.DateTime.Now;
System.DateTime itmp1 = CStatusControl._testDateTime;
//a wait of 100ms
OpenNETCF.Win32.Core.WaitForSingleObject(dummyEvent, 100);
System.DateTime itmp2 = System.DateTime.Now;
int dt = itmp2.Millisecond - itmp1.Millisecond;
.....
}
but dt is always zero. Has anybody an idea how i can measure time
differences?
Thanks a lot,
elmar
to make a performance analysis i want to print out the milli sec during
two time stamps. for this i save a ref time stamp and subtract at
different position the actual time from the ref time stamp. But i get
always zero as value. here an example:
{
....
IntPtr dummyEvent = OpenNETCF.Win32.Core.CreateEvent(false, false, dummy");
CStatusControl._testDateTime = System.DateTime.Now;
System.DateTime itmp1 = CStatusControl._testDateTime;
//a wait of 100ms
OpenNETCF.Win32.Core.WaitForSingleObject(dummyEvent, 100);
System.DateTime itmp2 = System.DateTime.Now;
int dt = itmp2.Millisecond - itmp1.Millisecond;
.....
}
but dt is always zero. Has anybody an idea how i can measure time
differences?
Thanks a lot,
elmar