Thank you
Now it is fine
Jianyi
User Profile
Collapse
-
Though i have got time2 - time1 but notgetting about function calls. Do you mean this way
[code=c]
QueryPerformanc eFrequency(&lTi me1);
QueryPerformanc eCounter(&lFreq );
cout<<fib(i);
QueryPerformanc eFrequency(&lTi me2);
diffTicks=lTime 2.QuadPart-lTime1.QuadPart ;//ticks passed
...Leave a comment:
-
Thanks for reply
but it is producing no result; 0 ticks and 0 seconds for each n i.e. 4,8,16, 32
[code=c]
while (quit != 'x')
{
LARGE_INTEGER lFreq;
LARGE_INTEGER lTime1;
LARGE_INTEGER lTime2;
long diffTicks;
float diffSecs;
int i;
...Leave a comment:
-
measuring execution time for C++ program
Hi,
I want to calculate execution time for a program computing fibonacci number in C++. I have programmed two functions (one using recursion and other using divide and conquer huristic) to compute fibonnaci number for (n=4,8,16,32,64 ). Now i want to compare these two methods. Though i have used following method to compute execution time but it is not precise as yielding 0 ticker time for n=4,8,16 in both the cases
[code=c]... -
Pyramid Gird based data structure in C++
I want to implement pyramidal grid based structure for storing data having 4^i cells at each level where i is level. In each cell ,i will store number of users,their ids and density so that i can compress them for upper layers and expand them for lower layers. Can anybody suggest me any direction for that ( right now i am going with dimensional-arrays to implement but it does not sound better as i want to compress four cells into one cell for upper... -
Pyramid data structure
I want to implement pyramidal structure for storing data having 4^i cells at each level where i is level. In each cell ,i will store number of users,their ids and density so that i can compress them for upper layers and expand them for lower layers. Can anybody suggest me any direction for that ( right now i am going with dimensional-arrays to implement but it does not sound better as i want to compress four cells into one cell for upper layer and...
No activity results to display
Show More
Leave a comment: