FEDEM Solver  R8.0
Source code of the dynamics solver
Functions | Variables
clksec.c File Reference

System-dependent global functions for time measurement. More...

#include "FFaLib/FFaOS/FFaFortran.H"
#include <sys/time.h>
#include <stdlib.h>
Include dependency graph for clksec.c:

Functions

 REAL_FUNCTION (clksec, CLKSEC) const
 Returns current wall clock time in seconds. More...
 
 SUBROUTINE (clkini, CLKINI)()
 Initializes the static years variable. More...
 

Variables

static unsigned long years = 1261440000
 

Detailed Description

System-dependent global functions for time measurement.

Function Documentation

◆ REAL_FUNCTION()

REAL_FUNCTION ( clksec  ,
CLKSEC   
) const

Returns current wall clock time in seconds.

This machine dependent function returns as its value the wall clock time in seconds since Jan 1 2003 00:00:00, minus the value of the input argument *T.

◆ SUBROUTINE()

SUBROUTINE ( clkini  ,
CLKINI   
)

Initializes the static years variable.

This machine dependent function re-initializes the number of seconds passed since Jan 1 1970, and up to the time of its invokation. The function should be called before the first invokation of CLKSEC. It ensures that the value returned by CLKSEC always is small enough to be represented by a float.

Variable Documentation

◆ years

unsigned long years = 1261440000
static

Seconds in 40 years (1970-2010)