-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.cpp
More file actions
26 lines (16 loc) · 830 Bytes
/
Main.cpp
File metadata and controls
26 lines (16 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>
#include <chrono>
// I'll link the problems like this for now. Later give them a proper header file.
// int problemOne();
// int problemTwo();
// int largestPrimeFactor(uint64_t theNumber); // Problem three
// uint32_t largestPalindromeProduct();
int smallestDivisibleNumber1to20();
int main()
{
std::chrono::steady_clock::time_point begin = std::chrono::steady_clock::now();
std::cout << smallestDivisibleNumber1to20() << std::endl;
std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now();
std::cout << "Time difference = " << std::chrono::duration_cast<std::chrono::microseconds>(end - begin).count() << "[mircos]" << std::endl;
std::cout << "Time difference = " << std::chrono::duration_cast<std::chrono::nanoseconds> (end - begin).count() << "[nanos]" << std::endl;
}