Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NowMicros (0.17 sec)

  1. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

      }
    
      /**
       * Reserves next ticket and returns the wait time that the caller must wait for.
       *
       * @return the required wait time, never negative
       */
      final long reserveAndGetWaitLength(int permits, long nowMicros) {
        long momentAvailable = reserveEarliestAvailable(permits, nowMicros);
        return max(momentAvailable - nowMicros, 0);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/SmoothRateLimiter.java

      void resync(long nowMicros) {
        // if nextFreeTicket is in the past, resync to now
        if (nowMicros > nextFreeTicketMicros) {
          double newPermits = (nowMicros - nextFreeTicketMicros) / coolDownIntervalMicros();
          storedPermits = min(maxPermits, storedPermits + newPermits);
          nextFreeTicketMicros = nowMicros;
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  3. tensorflow/c/env.cc

    TF_CAPI_EXPORT extern uint64_t TF_NowNanos(void) {
      return ::tensorflow::Env::Default()->NowNanos();
    }
    
    // Returns the number of microseconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowMicros(void) {
      return ::tensorflow::Env::Default()->NowMicros();
    }
    
    // Returns the number of seconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowSeconds(void) {
      return ::tensorflow::Env::Default()->NowSeconds();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  4. tensorflow/c/env_test.cc

      ASSERT_TRUE(found) << "expected at least one temp dir";
    
      TF_StringStreamDone(tempdirs);
    }
    
    TEST(TestEnv, TestTimeFunctions) {
      ASSERT_GE(TF_NowSeconds(), 946684800);  // Midnight Jan 1, 2000
      ASSERT_GE(TF_NowMicros(), 946684800 * 1e6);
      ASSERT_GE(TF_NowNanos(), 946684800 * 1e9);
    }
    
    namespace {
    
    struct SomeThreadData {
      ::tensorflow::mutex mu;
      bool did_work = false;
    };
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  5. tensorflow/c/env.h

    // Returns the number of nanoseconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowNanos(void);
    
    // Returns the number of microseconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowMicros(void);
    
    // Returns the number of seconds since the Unix epoch.
    TF_CAPI_EXPORT extern uint64_t TF_NowSeconds(void);
    
    // Populates a TF_ThreadOptions struct with system-default values.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
Back to top