Skip to content

Instantly share code, notes, and snippets.

@kzkvv
Created May 6, 2018 16:46
Show Gist options
  • Save kzkvv/f5e9128efbea99b7352a30c3f6675a76 to your computer and use it in GitHub Desktop.
Save kzkvv/f5e9128efbea99b7352a30c3f6675a76 to your computer and use it in GitHub Desktop.
//
#include "stdafx.h"
#include <iostream>
#include <chrono>
#include <ctime>
#include <Windows.h>
int main()
{
setlocale(LC_ALL, "Russian");
std::chrono::time_point<std::chrono::system_clock> start, end;
//ввод данных
start = std::chrono::system_clock::now();
//сортировка
end = std::chrono::system_clock::now();
int elapsed_seconds = std::chrono::duration_cast<std::chrono::seconds>
(end - start).count();
std::cout << "Время выполнения: " << elapsed_seconds << "s\n";
system("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment