Valkka  1.6.1
OpenSource Video Management
Functions
tools.cpp File Reference

Auxiliary routines. More...

#include "tools.h"
Include dependency graph for tools.cpp:

Functions

long int getCurrentMsTimestamp ()
 Utility function: returns current unix epoch timestamp in milliseconds. Uses timeval.
 
long int getMsDiff (timeval tv1, timeval tv2)
 Utility function: return timedif of two timeval structs in milliseconds.
 
struct timeval msToTimeval (long int mstimestamp)
 Milliseconds to timeval.
 
long int timevalToMs (struct timeval time)
 
bool slotOk (SlotNumber n_slot)
 Timeval to milliseconds. More...
 
void normalize_timespec (struct timespec *ts, time_t sec, int64_t nanosec)
 

Detailed Description

Auxiliary routines.

Author
Sampsa Riikonen
Date
2017
Version
1.6.1

DESCRIPTION

Function Documentation

◆ slotOk()

bool slotOk ( SlotNumber  n_slot)

Timeval to milliseconds.

Checks the slot number range