#include <list>
#include <iostream>
#include <map>
-#include <ctime>
#include <sys/types.h>
void lock ();
void unlock ();
- time_t timestamp() { return _timestamp; };
+ int64_t timestamp() const { return _timestamp; };
samplepos_t start() const { return _start; }
samplepos_t end() const { return _end; }
samplecnt_t length() const { return _end - _start; }
bool _locked;
PositionLockStyle _position_lock_style;
boost::shared_ptr<SceneChange> _scene_change;
- time_t _timestamp;
+ int64_t _timestamp;
void set_mark (bool yn);
bool set_flag_internal (bool yn, Flags flag);
, _flags (Flags (0))
, _locked (false)
, _position_lock_style (AudioTime)
- , _timestamp(time(0))
+ , _timestamp (time (0))
{
assert (_start >= 0);
assert (_end >= 0);
, _flags (bits)
, _locked (false)
, _position_lock_style (s.config.get_glue_new_markers_to_bars_and_beats() ? MusicTime : AudioTime)
- , _timestamp(time(0))
+ , _timestamp (time (0))
{
recompute_beat_from_samples (sub_num);
, _end_beat (other._end_beat)
, _flags (other._flags)
, _position_lock_style (other._position_lock_style)
- , _timestamp(time(0))
+ , _timestamp (time (0))
{
/* copy is not locked even if original was */
: SessionHandleRef (s)
, _flags (Flags (0))
, _position_lock_style (AudioTime)
- , _timestamp(time(0))
+ , _timestamp (time (0))
{
/* Note: _position_lock_style is initialised above in case set_state doesn't set it
(for 2.X session file compatibility).