I have a function that opens a file, writes an arbitrary amount of bytes to a file, closes it and reports the time required to write:
long int write_channel(int8_