MCPcopy Create free account
hub / github.com/Compaile/ctrack / main

Function main

examples/basic_singlethreaded.cpp:29–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29int main() {
30
31
32 // Perform calculations
33 double sum = sum_of_squares(1000);
34 unsigned long long fact = factorial(20);
35 int fib = fibonacci(30);
36
37 // Print results
38 std::cout << "Sum of squares: " << sum << std::endl;
39 std::cout << "Factorial: " << fact << std::endl;
40 std::cout << "Fibonacci: " << fib << std::endl;
41
42 // Print benchmarking results
43 ctrack::result_print();
44 //std::cout << ctrack::result_as_string() << std::endl;
45 return 0;
46}

Callers

nothing calls this directly

Calls 4

sum_of_squaresFunction · 0.85
factorialFunction · 0.85
fibonacciFunction · 0.85
result_printFunction · 0.85

Tested by

no test coverage detected