summaryrefslogtreecommitdiff
path: root/common/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/timer.c')
-rw-r--r--common/timer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/timer.c b/common/timer.c
index d88a34164e..117cea4b71 100644
--- a/common/timer.c
+++ b/common/timer.c
@@ -319,6 +319,7 @@ DECLARE_CONSOLE_COMMAND(forcetime, command_force_time,
"Force current time");
#endif
+#ifdef CONFIG_CMD_GETTIME
static int command_get_time(int argc, char **argv)
{
timestamp_t ts = get_time();
@@ -329,6 +330,7 @@ static int command_get_time(int argc, char **argv)
DECLARE_SAFE_CONSOLE_COMMAND(gettime, command_get_time,
NULL,
"Print current time");
+#endif
#ifdef CONFIG_CMD_TIMERINFO
int command_timer_info(int argc, char **argv)