Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ start
Method
start
codecarbon/core/rapl.py:67–68 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
65
return
Energy.from_ujoules(0)
66
67
def
start(self) -> None:
68
self.last_energy = self._get_value()
69
70
def
delta(self, duration: Time) -> None:
71
""
"
Callers
1
test_wraparound_delta_correct_value
Method · 0.95
Calls
1
_get_value
Method · 0.95
Tested by
1
test_wraparound_delta_correct_value
Method · 0.76