Incorated long sampling period support including usecs and hours. Note that long long divisions didn't want to work in the driver during compile.