Displaying 1 result from an estimated 1 matches for "print_cp_result2".
Did you mean:
print_cp_result
2010 Mar 18
0
[MODULE] COM32 module to time null-dumping a file
...#39;s optimal? Under 4k?
+ * layout.inc: xfer_buf_seg equ 1000h
+ */
+
+float get_tps(){ return 18.2; }
+
+#else /* __COM32__ */
+
+#define BUFSZ 16384
+/* Need to check what might be a "best" buffer/fetch block size here */
+
+float get_tps(){ return (float)sysconf(_SC_CLK_TCK); }
+void print_cp_result2(char *fn, int bcnt, clock_t bc, clock_t ec)
+{
+ float et, dr;
+ et = ((float)(ec - bc)) / (float)sysconf(_SC_CLK_TCK);
+ dr = ((float)bcnt) / et;
+ printf(" %dB in %.3fs from '%s'\n", bcnt, et, fn);
+ printf(" %.0f B/s; %.0f KiB/s; %.0f MiB/s\n", dr, dr/1024, dr/10485...