how can be the running time calculated of a function ?what will be the header file?
how can be the running time calculated of a function ?what will be the header file?
you can use ftime. and the timeb structure. in time.h
hasafraggin shizigishin oppashigger...
Do you mean actual time? Or the concept of complexity analysis (Big O)?
i want to calculate actual run time.
If you are on a windows os including a console program then go to msdn and search for QueryPerformanceCounter()
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
strickly speaking, ftime wouldn't actually give you the runtime of a function [as if you put the the function's address as a parameter]. but rather it's such that you'd get the runtime of the processor since 1980, which you could poll twice and take the difference at both ends of your function's execution.
hasafraggin shizigishin oppashigger...