Time Resolved Detection of X-rays Using Large Area Avalanche Photodiodes