Commit 64135429 authored by Stefan Westerfeld's avatar Stefan Westerfeld

testhls: report performance for hls-mark

Signed-off-by: Stefan Westerfeld's avatarStefan Westerfeld <stefan@space.twc.de>
parent db40330d
......@@ -284,6 +284,8 @@ mark_zexpand (WavData& wav_data, size_t zero_frames, const string& bits)
int
hls_mark (const string& infile, const string& outfile, const string& bits)
{
double start_time = get_time();
TSReader reader;
Error err = reader.load (infile);
......@@ -332,6 +334,9 @@ hls_mark (const string& infile, const string& outfile, const string& bits)
return 1;
}
double end_time = get_time();
printf ("hls_time %f %f\n", start_pos / double (wav_data.sample_rate()), (end_time - start_time) * 1000 /* ms */);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment