Work out how much a script uses - Raspberry Pi Forums


hi all

building project uses bluetooth detect when phone close pi. have basics of shell script , works far.

there couple of things has got me thinking about. first, how work/find out how draw on pi script is. got me thinking bluetooth self. second question, script making brief connection trusted device, should power down bluetooth , on again script or leave on.

have pi 2 , bluetooth 4.0 date.

know answers depend on how script repeating. hence questions. @ moment thinking run every 30 seconds. after if met, sleep maybe 5 minutes.

if there quickish way, ok looking roughly.

hope makes sense. hate english, code way.

in advance.

work out how script uses
how work/find out how draw on pi script is
not clear question quantity wish measure.

example, electrical power (watts), or cpu cycles, or else?


raspberrypi



Comments