ネットワークアップデート機能とか、Pachubeへの情報登録とかの処理を追加しています

Dependencies:   Terminal EthernetNetIf Pachube TextLCD mbed ConfigFile FirmwareUpdater

geigercounter.cpp

Committer:
abe00makoto
Date:
2011-05-17
Revision:
0:a62f36392b9b

File content as of revision 0:a62f36392b9b:

#include "geigercounter.h"



float Geigercounter::getcps()
{
    if(_geigerrun)_stoptime=time(NULL);
    int seconds=_stoptime-_starttime;
    float cps=(float)_count/(float)seconds;
    return cps;
}

float Geigercounter::getcpm()
{
  return this->getcps()*60.0;
}