Telescope Control Library

Dependents:   PushToGo-F429

UTCClock.h

Committer:
caoyuan9642
Date:
2018-09-09
Revision:
5:2ee2c36f4d87
Parent:
0:6cb2eaf8b133
Child:
18:3ea58b079adc

File content as of revision 5:2ee2c36f4d87:

#include <time.h>

#ifndef UTCCLOCK_H_
#define UTCCLOCK_H_
/**
 * This class provides an interface to a general clock that provides information about the current time.
 * In most systems, this class is implemented by RTCClock to read time from the RTC.
 */
class UTCClock
{
public:
	UTCClock()
	{
	}
	virtual ~UTCClock()
	{
	}

	/** @return current UTC time in Unix timestamp format
	*/
	virtual time_t getTime() = 0;
	
	/** Set system time
	*/
	virtual void setTime(time_t time) = 0;

};

#endif /*UTCCLOCK_H_*/