Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- #include <cstdlib>
- #include <cstring>
- using namespace std;
- clock_t start, stop;
- int main(int argc, char *argv[])
- {
- strcat(argv[1], " <in >out");
- start=clock();
- system(argv[1]);
- stop=clock();
- cout << "Executing time: " << ((double)(stop-start)/CLOCKS_PER_SEC);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement