Quantifying the energy consumption of a pocket computer and a Java virtual machine | Synapse