mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-04-19 12:46:12 +08:00
Initial commit
This commit is contained in:
12
examples/ggwave-common.h
Normal file
12
examples/ggwave-common.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
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::map<std::string, std::string> parseCmdArguments(int argc, char ** argv);
|
||||
Reference in New Issue
Block a user