LCOV - code coverage report
Current view: directory - src/shared/platform - nacl_time_common.c (source / functions) Found Hit Coverage
Test: coverage.lcov Lines: 5 0 0.0 %
Date: 2012-02-16 Functions: 0 0 -

       1                 : /*
       2                 :  * Copyright (c) 2011 The Native Client Authors. All rights reserved.
       3                 :  * Use of this source code is governed by a BSD-style license that can be
       4                 :  * found in the LICENSE file.
       5                 :  */
       6                 : 
       7                 : #include "native_client/src/shared/platform/nacl_time.h"
       8                 : #include "native_client/src/include/nacl_macros.h"
       9                 : 
      10               0 : int64_t NaClGetTimeOfDayMicroseconds() {
      11                 :   struct nacl_abi_timeval tv;
      12               0 :   int ret = NaClGetTimeOfDay(&tv);
      13               0 :   if (ret == 0) {
      14               0 :     return (tv.nacl_abi_tv_sec * NACL_MICROS_PER_UNIT) +
      15                 :       tv.nacl_abi_tv_usec;
      16                 :   }
      17                 : 
      18               0 :   return -1;
      19                 : }
      20                 : 

Generated by: LCOV version 1.7