diff --git a/templates/_.cpp b/templates/_.cpp index e786c3d..88c8ec2 100644 --- a/templates/_.cpp +++ b/templates/_.cpp @@ -8,10 +8,18 @@ VIM-: let b:argv="" */ #include #include +#include int main ( void ) {try{ + auto begin = std::chrono::high_resolution_clock::now(); + + //...... + + auto end = std::chrono::high_resolution_clock::now(); + std::chrono::duration seconds = end - begin; + std::cout << "Time: " << seconds.count() << std::endl; return 0; } catch ( const std::exception& e )