diff options
| author | MenTaLguY <mental@rydia.net> | 2007-05-10 01:18:10 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2007-05-10 01:18:10 +0000 |
| commit | b82206974e2b75d9add23f97f13d04297ae338ed (patch) | |
| tree | 2ca957fd7f842f083afcf7aab7db233f27af66e0 /src/debug | |
| parent | cairo ps output patch (diff) | |
| download | inkscape-b82206974e2b75d9add23f97f13d04297ae338ed.tar.gz inkscape-b82206974e2b75d9add23f97f13d04297ae338ed.zip | |
make sure microseconds get the right number of decimal places
(bzr r2988)
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/timestamp.cpp | 2 |
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(×tamp); - 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; |
