wrote tool to check time of sleep