mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-07 01:11:22 +08:00
- single-threaded app - new message indicator - audio capture indicator - emscripten compatibility
20 lines
472 B
C++
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);
|