Timing
This commit is contained in:
+5
-2
@@ -1,3 +1,4 @@
|
||||
#include <chrono>
|
||||
#include <iostream>
|
||||
|
||||
#include "../econSpd.h"
|
||||
@@ -122,11 +123,13 @@ int main() {
|
||||
std::cout << "Mach for CI " << ci << ": " << ratioedMach << std::endl << std::endl;
|
||||
std::cout << "END Step-By-Step" << std::endl << std::endl << std::endl;
|
||||
|
||||
|
||||
std::cout << "BEGIN All-In-One" << std::endl << std::endl;
|
||||
|
||||
auto start = std::chrono::high_resolution_clock::now();
|
||||
float aioMach = ci2mach(altitude, weight, tipTankPercent, ci);
|
||||
auto stop = std::chrono::high_resolution_clock::now();
|
||||
auto duration = std::chrono::duration_cast<std::chrono::nanoseconds>(stop - start);
|
||||
|
||||
std::cout << "Mach for CI " << ci << ": " << aioMach << std::endl << std::endl;
|
||||
std::cout << "END All-In-One" << std::endl ;
|
||||
std::cout << "END All-In-One, " << duration.count() << std::endl ;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user