Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Terminal EthernetNetIf Pachube TextLCD mbed ConfigFile FirmwareUpdater
geigercounter.cpp
00001 #include "geigercounter.h" 00002 00003 00004 00005 float Geigercounter::getcps() 00006 { 00007 if(_geigerrun)_stoptime=time(NULL); 00008 int seconds=_stoptime-_starttime; 00009 float cps=(float)_count/(float)seconds; 00010 return cps; 00011 } 00012 00013 float Geigercounter::getcpm() 00014 { 00015 return this->getcps()*60.0; 00016 }
Generated on Wed Jul 13 2022 02:46:53 by
1.7.2