Files
ggwave/examples/ggwave-common.h
Georgi Gerganov 3484bd11c2 waver : bump version to v1.3.2
- single-threaded app
- new message indicator
- audio capture indicator
- emscripten compatibility
2021-01-07 19:22:12 +02:00

20 lines
472 B
C++

#pragma once
#include <chrono>
#include <string>
#include <map>
#include <vector>
// some basic helper methods for the examples
template <class T>
float getTime_ms(const T & tStart, const T & tEnd) {
return ((float)(std::chrono::duration_cast<std::chrono::microseconds>(tEnd - tStart).count()))/1000.0;
}
std::vector<char> readFile(const char* filename);
std::string getBinaryPath();
std::map<std::string, std::string> parseCmdArguments(int argc, char ** argv);