Calculate time in seconds since last database read.