Prompt how to implement it

Hello. We are creating a benchmark on android, we need to get the CPU temperature and freequency in real time. But we’re could not find the right information. Prompt how to implement it. Sorry for bad English. Thanks.