- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's an example:
std::clock_t start = std::clock(); // do some work std::clock_t finish = std::clock(); std::double_t time_span = finish - start; std::cout << "Execution time: " << time_span << "\n";
Good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
At least you may use a partially ordered RDTSCP instruction.
Be aware, that assembly implementation may run in the "shadow" of RDTSCP instruction (i.e. execute faster (in terms of pipeline stage of execution, than RDTSCP instruction)

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page