fn find_size(&self) -> u64 {
        // 1 hr in milliseconds
        const MIN_TIME: u64 = 1000 * 60 * 60;
        let last_fetch = self.last_fetch.load(Ordering::Relaxed);
        let now = now_as_millis();

        // if it's been over an hour since the last fetch, then fetch again and update `last_fetch`
        // to the correct value
        if now - last_fetch >= MIN_TIME {
            self.update_real_size();
            self.last_fetch.store(now, Ordering::SeqCst);
        }

        self.total.load(Ordering::SeqCst)
    }
/// Finds an estimated total size of the database. If a certain amount of time has passed, then
/// it will find the real size and update the internal counter.
Finds an estimated total size of the database. If a certain amount of time has passed, then
it will find the real size and update the internal counter.
Finds an estimated total size of the database . If a certain amount of time has passed then it will find the real size and update the internal counter .
fn find_size(&self) -> u64 {
        // 1 hr in milliseconds
        const MIN_TIME: u64 = 1000 * 60 * 60;
        let last_fetch = self.last_fetch.load(Ordering::Relaxed);
        let now = now_as_millis();
        // if it's been over an hour since the last fetch, then fetch again and update `last_fetch`
        // to the correct value
        if now - last_fetch >= MIN_TIME {
            self.update_real_size();
            self.last_fetch.store(now, Ordering::SeqCst);
        }
        self.total.load(Ordering::SeqCst)
    }
fn find_size ( & self ) -> u64 { // 1 hr in milliseconds const MIN_TIME : u64 = 1000 * 60 * 60 ; let last_fetch = self . last_fetch . load ( Ordering :: Relaxed ) ; let now = now_as_millis ( ) ; // if it's been over an hour since the last fetch, then fetch again and update `last_fetch` // to the correct value if now - last_fetch >= MIN_TIME { self . update_real_size ( ) ; self . last_fetch . store ( now , Ordering :: SeqCst ) ; } self . total . load ( Ordering :: SeqCst ) }
Finds an estimated total size of the database.
Finds an estimated total size of the database .
&self