Created
June 15, 2013 07:11
-
-
Save xiaom/5787231 to your computer and use it in GitHub Desktop.
difference in time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clock_t start, end; | |
start = clock(); | |
// | |
// YOUR CODE | |
// | |
end = clock(); | |
cerr << "Inverted Index is built in " | |
<< (double)(end - start) / CLOCKS_PER_SEC * 1000 | |
<< " ms." << endl; | |
// In addition, | |
// | |
// difftime(start, end) return time in second |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment