私はさまざまな実験を行うC++プログラムを持っており、これらの実験中に、を使用していくつかの値をファイルに出力しますofstream
。構造は基本的に次のとおりです。
Start timer
output to a file using ofstream (the output is, at most, a few words)
do some experimental work
Stop timer
少し広い質問ですが、ofstreamにかかる時間を無視できますか、それとも無視できるものではありませんか?または私はそれが依存すると思いますか?