We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4031222 commit d730dd1Copy full SHA for d730dd1
ext/stackprof/stackprof.c
@@ -69,7 +69,7 @@ static const char *fake_frame_cstrs[] = {
69
static int64_t delta_usec(timestamp_t *start, timestamp_t *end) {
70
struct timeval diff;
71
timersub(end, start, &diff);
72
- return (1000 * diff.tv_sec) + diff.tv_usec;
+ return (MICROSECONDS_IN_SECOND * diff.tv_sec) + diff.tv_usec;
73
}
74
#endif
75
0 commit comments