i have it working so far to print the number but
$time = `currentTime -query`;
bakeResults -simulation true -t "0:$time" -sampleBy 1 -disableImplicitControl true -preserveOutsideKeys false -sparseAnimCurveBake true -at "tx" -at "ty" -at "tz" |Hips;
// Error: line 3: Invalid time unit: 0:$time //
everything starts and ends in the right place at the right time.