mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 15:43:56 +00:00
timeout: use uint64_t for all plain time values
This enforces the use of unsigned 64-bit values for time in the duration type, the timeout framework, the timer session, the userland timer-drivers, and the alarm framework on all platforms. The commit also adapts the code that uses these tools accross all basic repositories (base, base-*, os. gems, libports, ports, dde_*) to use unsigned 64-bit values for time as well as far as this does not imply profound modifications. Fixes #3208
This commit is contained in:
committed by
Christian Helmuth
parent
e072ee480b
commit
181c78d482
@ -158,7 +158,7 @@ struct Test::Main
|
||||
{
|
||||
Timer::Connection timer(_env);
|
||||
|
||||
unsigned long const start_us = timer.elapsed_us();
|
||||
Genode::uint64_t const start_us = timer.elapsed_us();
|
||||
|
||||
enum { ITERATIONS = 40 };
|
||||
for (int i = 0; i < ITERATIONS; i++)
|
||||
@ -168,7 +168,7 @@ struct Test::Main
|
||||
_font_4, Color(150 + i*73, 0, 200),
|
||||
"Glyphs obtained from VFS");
|
||||
|
||||
unsigned long const end_us = timer.elapsed_us();
|
||||
Genode::uint64_t const end_us = timer.elapsed_us();
|
||||
unsigned long num_glyphs = strlen(vfs_text_string)*ITERATIONS;
|
||||
|
||||
log("uncached painting: ", (float)(end_us - start_us)/num_glyphs, " us/glyph");
|
||||
@ -181,7 +181,7 @@ struct Test::Main
|
||||
|
||||
Timer::Connection timer(_env);
|
||||
|
||||
unsigned long const start_us = timer.elapsed_us();
|
||||
Genode::uint64_t const start_us = timer.elapsed_us();
|
||||
|
||||
/* use less iterations for small cache sizes */
|
||||
int const iterations = (limit_kib < 100) ? 200 : 2000;
|
||||
@ -192,7 +192,7 @@ struct Test::Main
|
||||
cached_font, Color(30, limit_kib, 150 + i*73),
|
||||
"Glyphs obtained from VFS");
|
||||
|
||||
unsigned long const end_us = timer.elapsed_us();
|
||||
Genode::uint64_t const end_us = timer.elapsed_us();
|
||||
unsigned long num_glyphs = strlen(vfs_text_string)*iterations;
|
||||
|
||||
log("cached painting: ", (float)(end_us - start_us)/num_glyphs, " us/glyph"
|
||||
|
Reference in New Issue
Block a user