Single-pixel three-dimensional imaging with time-based depth resolution