- 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:
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:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید