summaryrefslogtreecommitdiff
path: root/ufo/ufo-priv.c
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-08-19 15:33:06 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2015-08-19 15:33:06 +0200
commit51295dd17b289c9a1d9e885eb197cce4a1ca6b7c (patch)
treea4863b1d977ccbc92c66cea416e6fba6d1815326 /ufo/ufo-priv.c
parent409119e28e5d2bf3db615db71d4774c92ef90481 (diff)
Use common timestamp unit for both trace types
Diffstat (limited to 'ufo/ufo-priv.c')
-rw-r--r--ufo/ufo-priv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ufo/ufo-priv.c b/ufo/ufo-priv.c
index 0a00c40..565b376 100644
--- a/ufo/ufo-priv.c
+++ b/ufo/ufo-priv.c
@@ -87,7 +87,8 @@ make_event (const gchar *kernel, gconstpointer queue, gchar type, gulong timesta
event->tid = g_strdup (kernel);
event->pid = (gsize) queue;
event->type = type;
- event->timestamp = timestamp / 1000.0;
+ /* Convert from OpenCL ns to seconds in order to get µs in the trace view */
+ event->timestamp = timestamp * 10e-9;
return event;
}