Advertisement
qwtomek

Tester

Feb 15th, 2014
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <ctime>
  3. #include <cstdlib>
  4. #include <cstring>
  5.  
  6. using namespace std;
  7.  
  8. clock_t start, stop;
  9.  
  10. int main(int argc, char *argv[])
  11. {
  12.     strcat(argv[1], " <in >out");
  13.     start=clock();
  14.     system(argv[1]);
  15.     stop=clock();
  16.     cout << "Executing time: " << ((double)(stop-start)/CLOCKS_PER_SEC);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement