Added x_sleep for measuring performance with a delay app.

Tests run with x_iterate show OutOfMemory crashes at 1M calls.