Skip to content

Commit

Permalink
use ms time for events
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmixpanel committed Jun 23, 2022
1 parent 39b38b4 commit 13c7cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Track.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ class Track {
UserDefaults.standard.set(true, forKey: InternalKeys.mpDebugTrackedKey)
}
#endif
let epochSeconds = Int(round(epochInterval))
let epochMilliseconds = Int(round(epochInterval * 1000))
let eventStartTime = timedEvents[ev] as? Double
var p = InternalProperties()
AutomaticProperties.automaticPropertiesLock.read {
p += AutomaticProperties.properties
}
p["token"] = apiToken
p["time"] = epochSeconds
p["time"] = epochMilliseconds
var shadowTimedEvents = timedEvents
if let eventStartTime = eventStartTime {
shadowTimedEvents.removeValue(forKey: ev)
Expand Down

0 comments on commit 13c7cc9

Please sign in to comment.