4 #ifndef FIRE_TIME_CHRONO_HPP_INCLUDED
5 #define FIRE_TIME_CHRONO_HPP_INCLUDED
7 #include <boost/chrono.hpp>
12 #include "fire/export.hpp"
34 std::vector< boost::chrono::high_resolution_clock::time_point > times;
63 double stop(
double& deltaTime);
71 double getPartialTime();
82 double getPartialTime(
double& deltaTime);
90 std::vector< double > getTimes()
const;
91 void test(std::size_t floatsSize,
float floats[]) {
93 std::cout <<
"void test(std::size_t floatsSize, float floats[]);" << std::endl;
94 std::cout <<
"size: " << floatsSize << std::endl;
95 for (std::size_t floatIndex = 0 ; floatIndex < floatsSize ; floatIndex++) {
96 std::cout <<
"floats[" << floatIndex <<
"]: " << floats[floatIndex] << std::endl;
98 }
catch (
const std::exception& exception) {
Classe per la gestione di un cronometro.
Definition: Chrono.hpp:28