TwiceAsNice
2019-02-18
|
#include <qsiapi.h>
#include <iostream>
#include <cstring>
#include <unistd.h>
#include <cmath>
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
Functions | |
static double | gettime () |
Get a timestamp. More... | |
std::string | timestamp () |
Create an ISO 8601 formatted time stamp. More... | |
static short | name2position (QSICamera &cam, const std::string &filtername) |
convert the name of a filter into a number More... | |
void | usage () |
usage display of the program More... | |
int | image_main (int argc, char *argv[]) |
Main function. More... | |
int | main (int argc, char *argv[]) |
Variables | |
static bool | verbose = false |
static double | starttime |
Format a timestamp with millisecond precision for verbose mode. More... | |
|
static |
Get a timestamp.
int image_main | ( | int | argc, |
char * | argv[] | ||
) |
Main function.
To simplify exception handle, call this function from main(), and handle exceptions there.
int main | ( | int | argc, |
char * | argv[] | ||
) |
convert the name of a filter into a number
The filter position number we manipulate here is the number printed on the filterwheel, which starts at 1. Thus it is the API filter position + 1.
void usage | ( | void | ) |
usage display of the program
|
static |
Format a timestamp with millisecond precision for verbose mode.