Quantcast
Channel: SPOJ Discussion board - Latest posts
Viewing all articles
Browse latest Browse all 22554

Pomiar czasu wykonania programu

$
0
0

#include

using namespace std;

clock_t start, stop;
double czas;

int main()
{
start = clock();
\ Tu jest program\
stop = clock();

czas = (double) (stop-start) / CLOCKS_PER_SEC;
cout << czas;

return 0;
}

To powinno działać, jeśli coś jest niejasne to pisz - wytłumaczę


Viewing all articles
Browse latest Browse all 22554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>