Dotime

#include<time.h> int main() { clock_t begin = clock(); //ghi lại thời gian đầu //Đoạn chương trình cần đo clock_t end = clock(); //ghi lại thời gian lúc sau cout<<"Time run: "<<(float)(end-begin)/CLOCKS_PER_SEC<<" s"<<endl; return 0; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.