mirror of
https://github.com/pstrueb/piper.git
synced 2026-04-18 14:24:49 +00:00
Use nanoseconds for timestamp
This commit is contained in:
@@ -98,7 +98,8 @@ int main(int argc, char *argv[]) {
|
||||
// Path to output WAV file
|
||||
const auto now = chrono::system_clock::now();
|
||||
const auto timestamp =
|
||||
chrono::duration_cast<chrono::seconds>(now.time_since_epoch()).count();
|
||||
chrono::duration_cast<chrono::nanoseconds>(now.time_since_epoch())
|
||||
.count();
|
||||
|
||||
if (runConfig.outputType == OUTPUT_DIRECTORY) {
|
||||
stringstream outputName;
|
||||
|
||||
Reference in New Issue
Block a user