NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_time.h
Go to the documentation of this file.
1/*
2 * This software was developed at the National Institute of Standards and
3 * Technology (NIST) by employees of the Federal Government in the course
4 * of their official duties. Pursuant to title 17 Section 105 of the
5 * United States Code, this software is not subject to copyright protection
6 * and is in the public domain. NIST assumes no responsibility whatsoever for
7 * its use by other parties, and makes no guarantees, expressed or implied,
8 * about its quality, reliability, or any other characteristic.
9 */
10
11#ifndef __BE_TIME_H__
12#define __BE_TIME_H__
13
14#include <cstdint>
15
16#include <be_error_exception.h>
17
18namespace BiometricEvaluation
19{
27 namespace Time
28 {
29 const uint64_t OneSecond = 1000000;
30 const uint64_t OneHalfSecond = 500000;
31 const uint64_t OneQuarterSecond = 250000;
32 const uint64_t OneEighthSecond = 125000;
33 const int NanosecondsPerMicrosecond = 1000;
34 const int MicrosecondsPerSecond = 1000000;
36 const int MillisecondsPerSecond = 1000;
37
39 std::string
41
43 std::string
45
50 std::string
52
66 std::string
68 const std::string &formatString);
69
78 std::string
80 const struct tm *tmb,
81 const char *fmt);
82
83 }
84}
85#endif /* __BE_TIME_H__ */
const int MillisecondsPerSecond
Definition: be_time.h:36
const int MicrosecondsPerMillisecond
Definition: be_time.h:35
std::string put_time(const struct tm *tmb, const char *fmt)
Manual implementation of std::put_time.
std::string getCurrentCalendarInformation(const std::string &formatString)
Obtain customized calendar information.
std::string getCurrentDateAndTime()
const int NanosecondsPerMicrosecond
Definition: be_time.h:33
const uint64_t OneHalfSecond
Definition: be_time.h:30
std::string getCurrentTime()
const uint64_t OneEighthSecond
Definition: be_time.h:32
const uint64_t OneSecond
Definition: be_time.h:29
const uint64_t OneQuarterSecond
Definition: be_time.h:31
const int MicrosecondsPerSecond
Definition: be_time.h:34
std::string getCurrentDate()
This software was developed at the National Institute of Standards and Technology (NIST) by employees...