mirror of
https://github.com/GorgonMeducer/perf_counter.git
synced 2025-01-31 19:33:04 +08:00
Update core_main.c
This commit is contained in:
parent
2604ef394b
commit
6232e88af4
@ -105,7 +105,7 @@ char *mem_name[3] = { "Static", "Heap", "Stack" };
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
__attribute__((used))
|
__attribute__((used))
|
||||||
volatile float fCoremarkScore = 0.0f;
|
volatile double dfCoremarkScore = 0.0f;
|
||||||
|
|
||||||
#if MAIN_HAS_NOARGC
|
#if MAIN_HAS_NOARGC
|
||||||
MAIN_RETURN_TYPE
|
MAIN_RETURN_TYPE
|
||||||
@ -412,7 +412,7 @@ for (i = 0; i < MULTITHREAD; i++)
|
|||||||
double dfResult = (double)((double)1000000
|
double dfResult = (double)((double)1000000
|
||||||
* (double)default_num_contexts*results[0].iterations
|
* (double)default_num_contexts*results[0].iterations
|
||||||
/ (double)total_time);
|
/ (double)total_time);
|
||||||
fCoremarkScore = (float)dfResult;
|
dfCoremarkScore = dfResult;
|
||||||
|
|
||||||
ee_printf( "CoreMark 1.0 : %f / %s %s",
|
ee_printf( "CoreMark 1.0 : %f / %s %s",
|
||||||
dfResult,
|
dfResult,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user