Measuring ultrafast current of atomically thin photodetector