Wednesday, February 3, 2016

System Time




            


I want to calculate the time it takes to operate before and after operation and the operating system would like to take time to subtract, but looked TTime and TDateTime two classes, do not take the time to initialize, ask how to do it?
Reply:
TTime :: HomeTime ()
Reply:
TTime a;
a.HomeTime ();
for (TInt s; s & lt; 100000; s ++);
TTime b;
b.HomeTime;
TTimeIntervalMicroSeconds c = b.MicroSecondsFrom (a);
TInt d = c.Int64 ();
outputstream.WriteInt32L (d);
Why every time I take the two are the same, there TTimeIntervalMicroSeconds conversion out of the 64 long TInt, if only to write the output stream 32 length function
Reply:
Or use User :: TickCount it

And then use the results of construction TTime time

No comments:

Post a Comment