<div dir="ltr">Hi,<div><br></div><div><br></div><div style> While working on this project and trying to find out various measures for software testing I got a idea to implement this code </div><div style><br></div><div style>
#include<iostream></div><div style>#include<cstdio></div><div style>#include<time.h></div><div style>using namespace std;</div><div style>int main(){</div><div style> </div><div style> clock_t t1,t2;</div>
<div style> </div><div style> t1=clock();</div><div style> /* </div><div style><br></div><div style> Code to be written here (For application run time measurement)</div><div style><br></div><div style> */</div>
<div style> t2=clock();</div><div style> float time_taken=((float)t2-(float)t1); //This would give difference in number of clock ticks </div><div style> float time_in_sec = time_taken/CLOCKS_PER_SEC; // Would give us the time in seconds </div>
<div style> cout<<time_in_sec<<endl;</div><div style> system("pause");</div><div style> return 0;</div><div style><br></div><div style>}</div><div style><br></div><div style>Can someone suggest me the timescale for measurement and a sample DUNE testing platform for it. Besides I would like to know if the code built matches to the requirement . Still not clear with the UNIT TEST part . As that part can only be implemented by the developer himself , does the description say that even that needs to be implemented ? </div>
<div style><br></div><div style>Regards,</div><div style>Kartik.</div></div>