in reply to Finding Time Difference of Localtime

By my (quick) reading of the Proc::ProcessTable::Process documentation, you should compare $p->start to time rather than localtime.