Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/mlco2/codecarbon
/ from_seconds
Method
from_seconds
codecarbon/core/units.py:24–25 ·
view source on GitHub ↗
(cls, seconds: float)
Source
from the content-addressed store, hash-verified
22
23
@classmethod
24
def
from_seconds(cls, seconds: float) ->
"Time"
:
25
return
cls(seconds=seconds)
26
27
28
@dataclass
Callers
6
stop_task
Method · 0.80
_prepare_emissions_data
Method · 0.80
measure_power_and_energy
Method · 0.80
measure_power_and_energy
Method · 0.80
test_dram_option.py
File · 0.80
test_default_dram.py
File · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected