Actually your problem is this line:
if $time > 01:00
As $time
cannot be compared against 01:00
You need to first convert the time into seconds like this:
time=$(ps -p $pid -o etime= | awk -F ':' '{print $1*60 + $2}')
if [[ $time -gt 60 ]]; then
# your if block code here
fi