func (manager *LoggerManager) UpdateTimeDeltaInterval() {
    if (uint(int(time.Now().Unix()) - manager.TimeDeltaLastUpdate)) >= 60*SyncTimeUpdateInterval {
        Result, TimeDelta := GetTimeSync()
        if Result {
            manager.TimeDelta = TimeDelta
            manager.TimeDeltaLastUpdate = int(time.Now().Unix())
        } else {
            DebugLogger.Println("Time synchronization was unsuccessful!")
        }
    }
}
// UpdateTimeDeltaInterval get time difference between local machine and Coralogix servers
UpdateTimeDeltaInterval get time difference between local machine and Coralogix servers
// UpdateTimeDeltaInterval get time difference between local machine and Coralogix servers
func (manager *LoggerManager) UpdateTimeDeltaInterval() {
    if (uint(int(time.Now().Unix()) - manager.TimeDeltaLastUpdate)) >= 60*SyncTimeUpdateInterval {
        Result, TimeDelta := GetTimeSync()
        if Result {
            manager.TimeDelta = TimeDelta
            manager.TimeDeltaLastUpdate = int(time.Now().Unix())
        } else {
            DebugLogger.Println("Time synchronization was unsuccessful!")
        }
    }
}
func ( manager * LoggerManager ) UpdateTimeDeltaInterval ( ) { if ( uint ( int ( time . Now ( ) . Unix ( ) ) - manager . TimeDeltaLastUpdate ) ) >= 60 * SyncTimeUpdateInterval { Result , TimeDelta := GetTimeSync ( ) if Result { manager . TimeDelta = TimeDelta manager . TimeDeltaLastUpdate = int ( time . Now ( ) . Unix ( ) ) } else { DebugLogger . Println ( " " ) } } }
UpdateTimeDeltaInterval get time difference between local machine and Coralogix servers
UpdateTimeDeltaInterval get time difference between local machine and Coralogix servers