summaryrefslogtreecommitdiffhomepage
path: root/dev/generic_kits/BenchKit/Chrono.h
blob: 394f16fd18aa86bfad8145c0abd10d08f89bdb2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* -------------------------------------------

Copyright (C) 2025, Amlal El Mahrouss, all rights reserved.

------------------------------------------- */

#ifndef BENCHKIT_CHRONO_H
#define BENCHKIT_CHRONO_H

#include <CompilerKit/CompilerKit.h>
#include <NeKit/Defines.h>

namespace Kernel {
class ChronoInterface;

/// @brief a Chronometer interface used for benchmarking.
class ChronoInterface {
 public:
  ChronoInterface()          = default;
  virtual ~ChronoInterface() = default;

  NE_COPY_DEFAULT(ChronoInterface);

  virtual void   Start()                = 0;
  virtual void   Stop()                 = 0;
  virtual void   Reset()                = 0;
  virtual UInt64 GetElapsedTime() const = 0;
};
}  // namespace Kernel

#endif  // BENCHKIT_CHRONO_H