A brief file description. More...
#include "ink_platform.h"
#include "ink_defs.h"
#include "ink_hrtime.h"
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 () |
A brief file description.
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 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) |
Definition at line 58 of file ink_time.h.
Referenced by HttpTransact::calculate_document_freshness_limit(), and HttpTransact::HandleCacheOpenReadHitFreshness().
typedef time_t ink_time_t |
Definition at line 47 of file ink_time.h.
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 | |||
) |
Definition at line 175 of file ink_time.cc.
Referenced by Vol::db_check(), ShowCache::handleCacheEvent(), Diags::print_va(), and ShowCacheInternal::showVolVolumes().
inkcoreapi struct tm* ink_localtime_r | ( | const ink_time_t * | clock, | |
struct tm * | res | |||
) | [read] |
Definition at line 181 of file ink_time.cc.
Referenced by cftime_replacement(), UpdateEntry::ComputeScheduleTime(), LogUtils::seconds_to_next_roll(), CongestionEntry::sprint(), LogUtils::timestamp_to_date_str(), LogUtils::timestamp_to_netscape_str(), LogUtils::timestamp_to_str(), and LogUtils::timestamp_to_time_str().
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.