Revision 90fa4b4e server/src/Utterance.cpp

View differences:

server/src/Utterance.cpp
72 72

  
73 73
	// fetch first end time
74 74
	symbol_duration_pair_t symbol_duration_pair = *phonemes_vector_iterator;
75
	symbol_end_time = get_system_time() + boost::posix_time::milliseconds(symbol_duration_pair.second);
75
	symbol_end_time = std::chrono::steady_clock::now() + std::chrono::milliseconds(symbol_duration_pair.second);
76 76

  
77 77
	printf("> we have %d pairs\n", (int)phonemes_vector.size());
78 78

  
......
89 89
	if (phonemes_vector.size() == 0)
90 90
		return "";
91 91

  
92
	system_time now = get_system_time();
92
	std::chrono::time_point<std::chrono::steady_clock> now = std::chrono::steady_clock::now();
93 93

  
94 94
	while (now > symbol_end_time) {
95 95
		// fetch next phoneme:
96 96
		symbol_duration_pair_t symbol_duration_pair = *phonemes_vector_iterator;
97
		symbol_end_time = symbol_end_time + boost::posix_time::milliseconds(symbol_duration_pair.second);
97
		symbol_end_time = symbol_end_time + std::chrono::milliseconds(symbol_duration_pair.second);
98 98
		// printf("time: %d", symbol_duration_pair.second);
99 99

  
100 100
		// do we have to increment the iterator or are we done? (NOTE: -1 is necessary here!)

Also available in: Unified diff