B4X FEED Help to make a DRIVE SPEED TESTER

  • نویسنده موضوع نویسنده موضوع PracticalBot
  • تاریخ شروع تاریخ شروع

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: Help to make a DRIVE SPEED TESTER است. این موضوع تا کنون 82 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Help to make a DRIVE SPEED TESTER
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
82
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
3
Hi developers,

I wanted to make something similar to CrystalDiskMark on B4J.


The problem here in my code is that the file is written in async way, so measure the time it took cannot work here.

Really this is a simple test, but my goal is to write on canvas the current average while the file transfer, instead of show a number at end of file transfer.
To do this I need to track current data write/read bytes number.

How to do it ?
Maybe using CountingOutputStream - CountingInputStream or something else that track current write/read bytes ?
What is a best approach to do this ?

I've attached my simple code and zip project, if someone want help to improve it or have suggestions I'm really happy.

Many thanks

B4X:

کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید



 

عقب
بالا