Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
apr_timer.h
Go to the documentation of this file.
1 // Copyright 2010 Google Inc.
17 
18 #ifndef PAGESPEED_APACHE_APR_TIMER_H_
19 #define PAGESPEED_APACHE_APR_TIMER_H_
20 
23 
25 
26 namespace net_instaweb {
27 
28 class AprTimer : public Timer {
29  public:
30  virtual ~AprTimer();
31  virtual int64 NowUs() const;
32  virtual void SleepUs(int64 us);
33 };
34 
35 }
36 
37 #endif
virtual int64 NowUs() const
Returns number of microseconds since 1970.
Definition: apr_timer.h:28
virtual void SleepUs(int64 us)
Sleep for given number of microseconds.
Timer interface, made virtual so it can be mocked for tests.
Definition: timer.h:27