Skip to content

Commit 34406eb

Browse files
Added build codename
1 parent 46d9408 commit 34406eb

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ MsgCode get_cli_options(int argc, char** argv, bool* show_gui, bool* st_test, bo
213213

214214
// shows the system score
215215
void show_score(float singlethread_score, float multithread_score, int threads, int hardware_level) {
216+
printf("%-20s: %20s\n", get_string(MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_HEADER), BUILD_CODENAME);
216217
printf("%-20s: %20s\n", get_string(MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_VERSION), BENCHMARK_VERSION);
217218
printf("%-20s: %20s\n", get_string(MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_BUILD), BUILD_VERSION);
218219
printf("%-20s: %20d\n", get_string(MSG_MAIN_SHOW_SCORE_HARDWARE_LEVEL), hardware_level);

simplebench.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
#endif
3838
#endif
3939

40+
#define BUILD_CODENAME "Absolution"
41+
4042
// the time my machine (at the time) took to complete the single threaded test for hardware level 5
4143
// Intel Xeon E3 1280 3.6/3.9GHz (stock)
4244
// HyperX Fury 8GB DDR3 1333MHz Single Channel
@@ -75,6 +77,7 @@ typedef unsigned int MsgCode;
7577
#define SUCCESS 0
7678

7779
// main file
80+
#define MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_HEADER 1015
7881
#define MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_VERSION 1000
7982
#define MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_BUILD 1013
8083
#define MSG_MAIN_SHOW_SCORE_HARDWARE_LEVEL 1014

strings.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ String get_string(MsgCode msgcode) {
2020
case GUI_MEMORY_ALLOCATION_ERROR: return "GUI memory allocation error!";
2121
case CHRONOMETER_MEMORY_ALLOCATION_ERROR: return "Chronometer memory allocation error!";
2222

23+
case MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_HEADER: return "SimpleBench";
2324
case MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_VERSION: return "Benchmark Version";
2425
case MSG_MAIN_SHOW_SCORE_SIMPLEBENCH_BUILD: return "Program Build";
2526
case MSG_MAIN_SHOW_SCORE_HARDWARE_LEVEL: return "Hardware Level";

0 commit comments

Comments
 (0)