Simulating Real-Time Aspects of Wireless Sensor Networks