Defines | Typedefs | Functions

ink_time.h File Reference

A brief file description. More...

#include "ink_platform.h"
#include "ink_defs.h"
#include "ink_hrtime.h"
Include dependency graph for ink_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MICRO_USER   1
#define MICRO_SYS   2
#define MICRO_REAL   3
#define UNDEFINED_TIME   ((time_t)0)
#define cftime(s, format, clock)   cftime_replacement(s, 8192, format, clock)

Typedefs

typedef time_t ink_time_t

Functions

uint64_t ink_microseconds (int which)
double ink_time_wall_seconds ()
int cftime_replacement (char *s, int maxsize, const char *format, const time_t *clock)
ink_time_t convert_tm (const struct tm *tp)
inkcoreapi char * ink_ctime_r (const ink_time_t *clock, char *buf)
inkcoreapi struct tm * ink_localtime_r (const ink_time_t *clock, struct tm *res)
int ink_timezone ()

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file ink_time.h.


Define Documentation

#define cftime (   s,
  format,
  clock 
)    cftime_replacement(s, 8192, format, clock)

Definition at line 64 of file ink_time.h.

#define MICRO_REAL   3

Definition at line 57 of file ink_time.h.

Referenced by ink_microseconds().

#define MICRO_SYS   2

Definition at line 56 of file ink_time.h.

Referenced by ink_microseconds().

#define MICRO_USER   1

Definition at line 55 of file ink_time.h.

Referenced by ink_microseconds().

#define UNDEFINED_TIME   ((time_t)0)

Typedef Documentation

typedef time_t ink_time_t

Definition at line 47 of file ink_time.h.


Function Documentation

int cftime_replacement ( char *  s,
int  maxsize,
const char *  format,
const time_t *  clock 
)

Definition at line 118 of file ink_time.cc.

References ink_assert, and ink_localtime_r().

ink_time_t convert_tm ( const struct tm *  tp  ) 

Definition at line 143 of file ink_time.cc.

References days.

Referenced by UpdateEntry::ComputeScheduleTime().

inkcoreapi char* ink_ctime_r ( const ink_time_t clock,
char *  buf 
)
inkcoreapi struct tm* ink_localtime_r ( const ink_time_t clock,
struct tm *  res 
) [read]
uint64_t ink_microseconds ( int  which  ) 

Definition at line 53 of file ink_time.cc.

References MICRO_REAL, MICRO_SYS, and MICRO_USER.

double ink_time_wall_seconds (  ) 

Definition at line 86 of file ink_time.cc.

Referenced by UrlLru::dump(), print_detail_stats(), and testPreProc().

int ink_timezone (  )  [inline]

Definition at line 88 of file ink_time.h.