Home | History | Annotate | Download | only in bench
      1 
      2 /*
      3  * Copyright 2011 Google Inc.
      4  *
      5  * Use of this source code is governed by a BSD-style license that can be
      6  * found in the LICENSE file.
      7  */
      8 #ifndef SkBenchSysTimer_DEFINED
      9 #define SkBenchSysTimer_DEFINED
     10 
     11 //Time
     12 #include <mach/mach.h>
     13 #include <mach/mach_time.h>
     14 
     15 class BenchSysTimer {
     16 public:
     17     void startWall();
     18     void startCpu();
     19     double endCpu();
     20     double endWall();
     21 private:
     22     time_value_t fStartCpu;
     23     uint64_t fStartWall;
     24 };
     25 
     26 #endif
     27