diff options
Diffstat (limited to 'src/debug/timestamp.cpp')
| -rw-r--r-- | src/debug/timestamp.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/debug/timestamp.cpp b/src/debug/timestamp.cpp index 14d211ef3..dab4e733a 100644 --- a/src/debug/timestamp.cpp +++ b/src/debug/timestamp.cpp @@ -23,9 +23,8 @@ namespace Inkscape { namespace Debug { std::shared_ptr<std::string> timestamp() { - GTimeVal timestamp; - g_get_current_time(×tamp); - gchar *value = g_strdup_printf( "%d.%06d", static_cast<gint>(timestamp.tv_sec), static_cast<gint>(timestamp.tv_usec) ); + gint64 micr = g_get_monotonic_time(); + gchar *value = g_strdup_printf("%.6f", (gdouble)micr / 1000000.0); std::shared_ptr<std::string> result = std::make_shared<std::string>(value); g_free(value); return result; |
