A method for trusted measurement, comprising: obtaining, when start-up of a system is completed, a first processing result by performing a first-manner processing on a code segment in a memory, and using a result obtained by performing a platform configuration register, PCR, extending operation on the first processing result as a reference value, wherein the performing the first-manner processing on the code segment in the memory comprises performing a hash calculation on the code segment in the memory, and the performing the PCR extending operation on the first processing result comprises obtaining the reference value by performing the hash calculation on the first processing result and a preset first value; obtaining, at a first moment when the system is running, a second processing result by performing the first-manner processing on the code segment in the memory, and obtaining a first measurement value by performing the hash calculation on the second processing result and the first value; and determining whether the first measurement value and the reference value are equal, and if the first measurement value and the reference value are equal, the system is trusted, wherein the code segment in the memory is a code segment that does not change with normal running of the system during one start-up and a running process of the system; and after the determining that the first measurement value and the reference value are equal, the method further comprises: using a result obtained by performing the PCR extending operation on the second processing result as a first expected value, and the first expected value is used for a next trusted measurement. obtaining, when start-up of a system is completed, a first processing result by performing a first-manner processing on a code segment in a memory, and using a result obtained by performing a platform configuration register, PCR, extending operation on the first processing result as a reference value, wherein the performing the first-manner processing on the code segment in the memory comprises performing a hash calculation on the code segment in the memory, and the performing the PCR extending operation on the first processing result comprises obtaining the reference value by performing the hash calculation on the first processing result and a preset first value; obtaining, at a first moment when the system is running, a second processing result by performing the first-manner processing on the code segment in the memory, and obtaining a first measurement value by performing the hash calculation on the second processing result and the first value; and determining whether the first measurement value and the reference value are equal, and if the first measurement value and the reference value are equal, the system is trusted, wherein the code segment in the memory is a code segment that does not change with normal running of the system during one start-up and a running process of the system; and after the determining that the first measurement value and the reference value are equal, the method further comprises: using a result obtained by performing the PCR extending operation on the second processing result as a first expected value, and the first expected value is used for a next trusted measurement. using a result obtained by performing the PCR extending operation on the second processing result as a first expected value, and the first expected value is used for a next trusted measurement.