Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. int main() {
  2. auto start = std::chrono::high_resolution_clock::now();
  3. for (int i = 0; i < 100000; i++) {
  4. fopen("test.txt", "wb");
  5. }
  6. auto end = std::chrono::high_resolution_clock::now();
  7.  
  8. std::cout << std::chrono::duration<double>(end - start).count() << std::endl;
  9. return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement