carbond_lib/data/cpu_tracking.rs
1// SPDX-FileCopyrightText: 2024 Andreas Schmidt <andreas.schmidt@cs.uni-saarland.de>
2//
3// SPDX-License-Identifier: Apache-2.0 OR MIT
4
5#[derive(Debug, Default, Clone)]
6pub struct CpuTracking {
7    pub core: u32,
8    pub cycles: u64,
9}
10
11impl CpuTracking {
12    pub fn new(core: u32, cycles: u64) -> Self {
13        Self { core, cycles }
14    }
15}