mirror of
https://github.com/libretro/easyrpg-libretro.git
synced 2026-11-10 10:51:35 -10:00
15 lines
303 B
C++
15 lines
303 B
C++
#include <benchmark/benchmark.h>
|
|
#include "filefinder.h"
|
|
|
|
static void BM_InitRtp(benchmark::State& state) {
|
|
bool no_rtp_flag = false;
|
|
bool no_rtp_warning_flag = false;
|
|
for (auto _: state) {
|
|
FileFinder::InitRtpPaths(no_rtp_flag, no_rtp_warning_flag);
|
|
}
|
|
}
|
|
|
|
BENCHMARK(BM_InitRtp);
|
|
|
|
BENCHMARK_MAIN();
|