0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

c++ builder / fileIO > TFile::Copy() > 259ファイル 11.903秒 > プログレスバーが必要

Last updated at Posted at 2016-03-04
動作確認
C++ Builder XE4
Windows 7 pro 32bit (HDD)

TFile::Copy()を使ってファイルをコピーしたときの時間。
環境によって変化するので、だいたいの時間としてのメモ。

  • 総ファイル数: 259ファイル
  • 総容量: 88MB
  • 時間: 11.9秒

だいたいこの12倍の処理を実装しようとしているので、プログレスバーの表示などは検討しないといけない。

.cppと.hだけで実装してきたが、UIが入るとなると.dfmが関わってくる。
ロジックだけの実装として、コピーファイルのTStringList[]を返すだけにして、返ったリストをプログレスバーとともに処理する、という仕組みにしておくと、ロジックとUIが分離できて使いまわししやすそう。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?