// GetIdleTimeMillis the time in milliseconds that this object last spend in the the idle state
GetIdleTimeMillis the time in milliseconds that this object last spend in the the idle state
// GetIdleTimeMillis the time in milliseconds that this object last spend in the the idle state
func (o *PooledObject) GetIdleTimeMillis() int64 {
	elapsed := currentTimeMillis() - o.LastReturnTime
	if elapsed >= 0 {
		return elapsed
	}
	return 0
}
func ( o * PooledObject ) GetIdleTimeMillis ( ) int64 { elapsed := currentTimeMillis ( ) - o . LastReturnTime if elapsed >= 0 { return elapsed } return 0 }
GetIdleTimeMillis the time in milliseconds that this object last spend in the the idle state
GetIdleTimeMillis the time in milliseconds that this object last spend in the the idle state
// elapsed may be negative if: // - another goroutine updates lastReturnTime during the calculation window // - currentTimeMillis() is not monotonic (e.g. system time is set back)