static int hist_entry__time_snprintf(struct hist_entry *he, char *bf,
                                    size_t size, unsigned int width)
 {
-       unsigned long secs;
-       unsigned long long nsecs;
        char he_time[32];
 
-       nsecs = he->time;
-       secs = nsecs / NSEC_PER_SEC;
-       nsecs -= secs * NSEC_PER_SEC;
-
        if (symbol_conf.nanosecs)
-               snprintf(he_time, sizeof he_time, "%5lu.%09llu: ",
-                        secs, nsecs);
+               timestamp__scnprintf_nsec(he->time, he_time,
+                                         sizeof(he_time));
        else
                timestamp__scnprintf_usec(he->time, he_time,
                                          sizeof(he_time));