Sha256: 0bd33feb664e014582b9812096c1d0e69f0dee9840752b08c6f24c1e564e18e3

Contents?: true

Size: 326 Bytes

Versions: 21

Compression:

Stored size: 326 Bytes

Contents

#pragma once

#include <chrono>

namespace Pixlib {
  class Timer {
  public:
    Timer(unsigned int smoothing = 1);

    void start();
    void end();
    float duration();

  private:
    std::chrono::time_point<std::chrono::high_resolution_clock> start_time;
    unsigned int smoothing;
    float previous_duration;
  };
}

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pixo-0.4.5 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.4.4 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.4.3 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.4.2 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.4.1 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.4.0 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.3.2 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.3.1 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.3.0 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.2.6 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.2.5 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.2.4 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.2.3 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.2.2 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.2.1 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.2.0 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.1.4 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.1.3 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.1.2 ext/pixo/pixlib/include/pixlib/timer.hpp
pixo-0.1.1 ext/pixo/pixlib/include/pixlib/timer.hpp