mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-02-07 19:34:18 +08:00
add a global variable to observe Coremark score
This commit is contained in:
parent
ee560a054d
commit
2604ef394b
@ -104,6 +104,9 @@ char *mem_name[3] = { "Static", "Heap", "Stack" };
|
||||
|
||||
*/
|
||||
|
||||
__attribute__((used))
|
||||
volatile float fCoremarkScore = 0.0f;
|
||||
|
||||
#if MAIN_HAS_NOARGC
|
||||
MAIN_RETURN_TYPE
|
||||
coremark_main(void)
|
||||
@ -409,6 +412,8 @@ for (i = 0; i < MULTITHREAD; i++)
|
||||
double dfResult = (double)((double)1000000
|
||||
* (double)default_num_contexts*results[0].iterations
|
||||
/ (double)total_time);
|
||||
fCoremarkScore = (float)dfResult;
|
||||
|
||||
ee_printf( "CoreMark 1.0 : %f / %s %s",
|
||||
dfResult,
|
||||
COMPILER_VERSION,
|
||||
|
Loading…
x
Reference in New Issue
Block a user