Crate efficiency_benchmark

Source

Functionsยง

bench
Runs the benchmark.
execute_build_command
get_battery_percentage
Returns the battery percentage If on a device without battery, it will return 100
get_highest_score
get_latest_score
is_plugged
Returns true if the laptop is plugged in Returns false if the laptop is not plugged in If on a device without battery, it will ask the user if they want to continue and return false if the user confirms