Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

como medir tiempo de ejecucion cpp

#include <iostream>
#include <ctime> 
 
unsigned t0, t1;
 
t0=clock()
// Code to execute
t1 = clock();
 
double time = (double(t1-t0)/CLOCKS_PER_SEC);
cout << "Execution Time: " << time << endl;
Source by mascandobits.es #
 
PREVIOUS NEXT
Tagged: #como #medir #tiempo #de #ejecucion #cpp
ADD COMMENT
Topic
Name
2+4 =