diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-31 16:49:59 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-31 16:54:56 +0200 |
| commit | 7afa74b53110c0258c7fa9ae5aa8e7dde7534b4d (patch) | |
| tree | 157c8de0554bd681fdb30f7a814b21881d905fa4 /dev/misc/BenchKit/Chrono.h | |
| parent | 11034c004ee7b232e53d69e9f1ae9000f008285f (diff) | |
feat! BenchKit breaking changes.
why:
- Made it expandable to other traits and platforms.
- You can provide a `Traits` now to the `HWChrono`.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/misc/BenchKit/Chrono.h')
| -rw-r--r-- | dev/misc/BenchKit/Chrono.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/dev/misc/BenchKit/Chrono.h b/dev/misc/BenchKit/Chrono.h deleted file mode 100644 index 3a82a94e..00000000 --- a/dev/misc/BenchKit/Chrono.h +++ /dev/null @@ -1,40 +0,0 @@ -/* ------------------------------------------- - -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> - -/// @author Amlal El Mahrouss -/// @brief BenchKit Chrono contract. - -#define BENCHKIT_INTERFACE : public ::Kernel::ChronoInterface - -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 - -namespace BenchKit { -using namespace Kernel; -} - -#endif // BENCHKIT_CHRONO_H |
