Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use __rdtsc for timestamp #519

Merged
merged 5 commits into from
Nov 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix sign
  • Loading branch information
gaogaotiantian committed Nov 17, 2024
commit f8a09b890394a29209b2335edc9e4d5425ecef13
2 changes: 1 addition & 1 deletion src/viztracer/modules/snaptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ get_ts()
#if defined(QUICKTIME_RDTSC)
return get_system_ts();
#else
uint64_t curr_ts = get_system_ts();
int64_t curr_ts = get_system_ts();
if (curr_ts <= prev_ts) {
// We use artificial timestamp to avoid timestamp conflict.
// 20 ns should be a safe granularity because that's normally
Expand Down
Loading