root / synthbench / euroben-ports / base / C / mod2f / .svn / text-base / state.c.svn-base @ 0:839f52ef7657
History | View | Annotate | Download (1.5 kB)
1 |
#include <time.h> |
---|---|
2 |
#include <stddef.h> |
3 |
#include <stdio.h> |
4 |
|
5 |
void state( char * progname ) |
6 |
{ |
7 |
time_t now; |
8 |
|
9 |
// 123456789+123456789+123456789+123456789+12345 |
10 |
|
11 |
char machin[] = "Machine type? "; |
12 |
char memory[] = "Amount of memory? "; |
13 |
char compil[] = "Compiler version? "; |
14 |
char option[] = "Compiler options? "; |
15 |
char os[] = "Operating System? "; |
16 |
char runby[] = "Name of benchmarker? "; |
17 |
char comins[] = "Affiliation? "; |
18 |
|
19 |
now = time( NULL ); |
20 |
|
21 |
printf( " Euroben single-CPU benchmark V1.0 (C-version), program %s\n", |
22 |
progname ); |
23 |
printf( " -----------------------------------------------------------" ); |
24 |
printf( "------------\n" ); |
25 |
printf( " Computer %s\n", machin ); |
26 |
printf( " Memory size %s\n", memory ); |
27 |
printf( " Compiler version %s\n", compil ); |
28 |
printf( " Compiler options %s\n", option ); |
29 |
printf( " Operating System version %s\n", os ); |
30 |
printf( " Working precision 64 bits\n" ); |
31 |
printf( " Run by %s\n", runby ); |
32 |
printf( " Company/Institute %s\n", comins ); |
33 |
printf( "\n This program is run at: %s", asctime(localtime(&now))); |
34 |
printf( " -----------------------------------------------------------" ); |
35 |
printf( "------------\n" ); |
36 |
} |
37 |
|
38 |
|
39 |
|