Skip to content
This repository has been archived by the owner on Mar 11, 2019. It is now read-only.

feature(api): Draft of the new power meter API. #38

Merged
merged 8 commits into from
Feb 5, 2015
Merged

Conversation

rouvoy
Copy link
Contributor

@rouvoy rouvoy commented Jan 14, 2015

Example of usage:

val pspy = PowerMeter.load(PowerSpyModule) // Creates a power meter with PowerSpy support
val console = new ConsoleDisplay // Creates the console reporter
val one_sec = pspy.monitor(1.second)_ // Partially applies the monitor function
val firefox = one_sec(List("firefox"))(MEDIAN) to console // Monitors Firefox and reports to console

@rouvoy rouvoy added this to the 3.0 milestone Jan 14, 2015
@mcolmant mcolmant assigned rouvoy and huertas and unassigned rouvoy Feb 5, 2015
It's now possible to have a PowerModule composed by several sensor and formula instead of only one sensor and formula
mcolmant added a commit that referenced this pull request Feb 5, 2015
feature(api): Draft of the new power meter API.
@mcolmant mcolmant merged commit a01b7d5 into develop Feb 5, 2015
@mcolmant mcolmant deleted the powermeter-api branch February 5, 2015 12:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants