summaryrefslogtreecommitdiffstats
path: root/src/debug/timestamp.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2007-05-10 01:18:10 +0000
committermental <mental@users.sourceforge.net>2007-05-10 01:18:10 +0000
commitb82206974e2b75d9add23f97f13d04297ae338ed (patch)
tree2ca957fd7f842f083afcf7aab7db233f27af66e0 /src/debug/timestamp.cpp
parentcairo ps output patch (diff)
downloadinkscape-b82206974e2b75d9add23f97f13d04297ae338ed.tar.gz
inkscape-b82206974e2b75d9add23f97f13d04297ae338ed.zip
make sure microseconds get the right number of decimal places
(bzr r2988)
Diffstat (limited to '')
-rw-r--r--src/debug/timestamp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/timestamp.cpp b/src/debug/timestamp.cpp
index 75447ff35..1c6269756 100644
--- a/src/debug/timestamp.cpp
+++ b/src/debug/timestamp.cpp
@@ -23,7 +23,7 @@ Util::ptr_shared<char> timestamp() {
Util::ptr_shared<char> result;
GTimeVal timestamp;
g_get_current_time(&timestamp);
- gchar *value = g_strdup_printf("%d.%d", timestamp.tv_sec, timestamp.tv_usec);
+ gchar *value = g_strdup_printf("%d.%06d", timestamp.tv_sec, timestamp.tv_usec);
result = Util::share_string(value);
g_free(value);
return result;