Enumerations | Functions
core/vul/vul_get_timestamp.h File Reference

Obtains time elapsed since 1 Jan 1970, in seconds and milliseconds. More...

#include <vcl_string.h>

Go to the source code of this file.

Enumerations

enum  vul_time_style { vul_asc, vul_numeric_msf }
 Enum to specify style option for vul_get_time_as_string(). More...

Functions

void vul_get_timestamp (int &secs, int &msecs)
 purpose: obtain time elapsed since 1 Jan 1970, in seconds and milliseconds.
vcl_string vul_get_time_as_string (vul_time_style style=vul_asc)
 Get the present time and date as a string, e.g. "Fri Dec 8 14:54:17 2006".

Detailed Description

Obtains time elapsed since 1 Jan 1970, in seconds and milliseconds.

Author:
fsm
   Modifications
   PDA (Manchester) 21/03/2001: Tidied up the documentation
   

Definition in file vul_get_timestamp.h.


Enumeration Type Documentation

Enum to specify style option for vul_get_time_as_string().

Enumerator:
vul_asc 

format used by std:asctime() e.g. "Fri Dec 8 14:54:17 2006"

vul_numeric_msf 

space-separated numbers, most significant first "e.g. 2006 12 08 14 54 17"

Definition at line 27 of file vul_get_timestamp.h.


Function Documentation

vcl_string vul_get_time_as_string ( vul_time_style  style = vul_asc)

Get the present time and date as a string, e.g. "Fri Dec 8 14:54:17 2006".

Definition at line 63 of file vul_get_timestamp.cxx.

void vul_get_timestamp ( int &  secs,
int &  msecs 
)

purpose: obtain time elapsed since 1 Jan 1970, in seconds and milliseconds.

Definition at line 30 of file vul_get_timestamp.cxx.