This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
fig = plt.figure() | |
ax1 = fig.add_subplot(111) | |
ax1.plot(v1) | |
ax2 = ax1.twinx() | |
ax2.plot(v2, 'y') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <chrono> | |
using namespace std::chrono; | |
auto start = high_resolution_clock::now(); | |
// some code here | |
auto stop = high_resolution_clock::now(); | |
auto duration = duration_cast<milliseconds>(stop - start); | |
cout << duration.count() << "ms" << endl; |