Add clock function to elapsed time

Also futzed with spending calc a little