반응형

Includes & Defines

#include <chrono>
using std::chrono::duration;
using std::chrono::duration_cast;
using std::chrono::high_resolution_clock;
using std::chrono::milliseconds;

Pre

auto before = high_resolution_clock::now();

Post

auto after = high_resolution_clock::now();

Milliseconds processing time(int type)

auto milliseonds_processing_time= duration_cast<milliseconds>(after - before).count();
반응형

+ Recent posts