Welcome to mirror list, hosted at ThFree Co, Russian Federation.

StopWatch.h - github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 599df7c2e34e7db6dc8a59136e5636bcd85e78b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include <time.h>
#include <string>
#include <cstdint>

class StopWatch {
  public:
    explicit StopWatch(const std::string &label, float divide = 1);

    ~StopWatch();

  private:
    struct timespec started_;
    uint64_t tsc_;
    std::string label_;
    float divide_;
};