summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-30 10:05:22 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-30 10:05:22 (GMT)
commitdc08c1e4cb0bb26e02219f49bb3f6eb9801fe764 (patch)
tree6568d123b2f2824f27792eaa0206563c93563ca9 /include
parent10bea89dbf552570f6d356e1576f27bc40b095f3 (diff)
Added utility function to get time of frame.
Diffstat (limited to 'include')
-rw-r--r--include/tng_io.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/tng_io.h b/include/tng_io.h
index c31d8a2..e26089d 100644
--- a/include/tng_io.h
+++ b/include/tng_io.h
@@ -2142,6 +2142,19 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_open
*/
tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_close
(tng_trajectory_t *tng_data_p);
+
+/**
+ * @brief High-level function for getting the time (in seconds) of a frame.
+ * @param tng_data is the trajectory containing the frame.
+ * @param frame_nr is the frame number of which to get the time.
+ * @param time is set to the time (in seconds) of the specified frame.
+ * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (1) if a
+ * minor error has occured.
+ */
+tng_function_status DECLSPECDLLEXPORT tng_util_time_of_frame_get
+ (tng_trajectory_t tng_data,
+ const int64_t frame_nr,
+ double *time);
/*
// tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_molecules_get
// (tng_trajectory_t tng_data,
contact: Jan Huwald // Impressum